Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cma initialization problem #85

Closed
haohaomiao opened this issue Aug 2, 2023 · 1 comment
Closed

cma initialization problem #85

haohaomiao opened this issue Aug 2, 2023 · 1 comment

Comments

@haohaomiao
Copy link

When I am using CMAES searcher, the following problem occurs:

Traceback (most recent call last):
  File "/Users/haohaomiao/codefields/EvoTorch/test.py", line 11, in <module>
    searcher = CMAES(problem, stdev_init = 10)
  File "/Users/haohaomiao/anaconda3/envs/EvoTorch/lib/python3.10/site-packages/evotorch/algorithms/cmaes.py", line 365, in __init__
    self.decompose_C_freq = max(1, int(1 / np.floor(10 * d * (self.c_1.cpu() + self.c_mu.cpu()))))
OverflowError: cannot convert float infinity to integer

The dimension of my problem is 1000. 1000 is not a big number so maybe an improvement is needed.

@engintoklu
Copy link
Collaborator

Hello @haohaomiao !
Thank you very much for your very helpful feedback!
There is now a pull request (#86) addressing the issue #76 and also this issue you raised.

@Higgcz Higgcz closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants