-
Notifications
You must be signed in to change notification settings - Fork 79
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
CMASolutions reports best candidate's x value incorrect #231
Comments
I found a suggestion in other issues saying we needed to use cmasols.get_best_seen_candidate() instead of cmasols.best_candidate()
Unfortunately, I still see incorrect answers in outputs.. Just see below that x should never be lower than 0.
Here is an other incorrect output.. x should never be higher than 21.
Please note that the issue happened less frequently than the first test, but still the same issue. |
Hi, see https://github.com/CMA-ES/libcmaes/wiki/Defining-and-using-bounds-on-parameters |
Thank you for the quick clarification. Transformation solved my issue. However, cmasols.print(...) implementation you mentioned uses the best_candidate() for report
The documentation suggests using best_seen_candidate(), which is confusing.
In this case, anyone who uses cmasols.print(...) might not see the best parameters. What is the exact difference between best_candidate() and best_seen_candidate()? Can we document the diff? |
You should be able to apply Maybe we should provide a |
Hello,
I found that the CMASolutions does not report best candidate's x value properly.
Here is an example output from 20 iteration:
I validated that x values in fitness function never gets higher than 21 during simulations, which is expected. You can see some of the x values are over 21. Sometimes I see negative x values too, which is also NOT expected.
Here is the test code I used:
Is this expected behavior? If yes then why?
I compiled the lib with OpenMP=OFF
I use v0.10 and built it from the source code.
Thanks
The text was updated successfully, but these errors were encountered: