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

Default progress function does not show iteration 0 #100

Closed
beniz opened this issue Jan 13, 2015 · 2 comments
Closed

Default progress function does not show iteration 0 #100

beniz opened this issue Jan 13, 2015 · 2 comments
Assignees

Comments

@beniz
Copy link
Collaborator

beniz commented Jan 13, 2015

The first iteration and f-value is not shown.

@beniz beniz self-assigned this Jan 13, 2015
beniz pushed a commit that referenced this issue Jan 20, 2015
… computed, other values of interest now show, ref #100
@beniz
Copy link
Collaborator Author

beniz commented Jan 20, 2015

The reason for not showing the f-value at iteration 0 is that it is not computed. However, this is preventing showing other values, such as fevals and initial sigma, which is useful in plots.

Solution here is to show a NaN (not a number) value instead of nothing. This saves a call to the objective function while allowing other values to be printed out. It also fixes a potential crash in CMASolution::best_candidate() function on iteration 0.

There could be an option to compute the initial value of f and report it instead of NaN.

@beniz
Copy link
Collaborator Author

beniz commented Jan 20, 2015

Example output with iteration 0:

INFO - CMA-ES / dim=10 / lambda=10 / sigma0=0.1 / mu=5 / mueff=3.41477 / c1=0.015255 / cmu=0.0231675 / lazy_update=0 / threads=4
INFO - iter=0 / evals=0 / f-value=nan / sigma=0.1 / last_iter=0
INFO - iter=1 / evals=10 / f-value=43.3449669847514 / sigma=0.0908957792161511 / last_iter=0
INFO - iter=2 / evals=20 / f-value=42.0364952150545 / sigma=0.0977540860690153 / last_iter=0
INFO - iter=3 / evals=30 / f-value=39.5268914113173 / sigma=0.110879911207047 / last_iter=0
INFO - iter=4 / evals=40 / f-value=38.5401714745405 / sigma=0.126315174703626 / last_iter=0

beniz pushed a commit that referenced this issue Jan 25, 2015
…ber of column even when eigenvalues are not yet available, ref #100, #107
@beniz beniz closed this as completed Feb 5, 2015
andrewsali pushed a commit to andrewsali/libcmaes that referenced this issue Jan 31, 2016
… computed, other values of interest now show, ref CMA-ES#100
andrewsali pushed a commit to andrewsali/libcmaes that referenced this issue Jan 31, 2016
…ber of column even when eigenvalues are not yet available, ref CMA-ES#100, CMA-ES#107
andrewsali pushed a commit to andrewsali/libcmaes that referenced this issue Jan 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant