- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 88
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
ObserverMode::NewBest
sometimes logs everything
#151
Comments
Those are two different things. I agree that too much is logged for some reason. I will have a look at this. However, the "new weird thing" is expected and basically the way SA works. For instance: A new parameter vector is created using |
Interesting, I may have misinterpreted the log! I always thought the output/result of one iteration was printed. I thought it showed the cost of the last mutation, etc. |
Could this be due to the // check if parameters are the best so far
if self.state.get_cost() <= self.state.get_best_cost() {
let param = self.state.get_param();
let cost = self.state.get_cost();
self.state.best_param(param).best_cost(cost);
self.state.new_best();
} |
Thanks for digging into this, I haven't had time yet. This seems very much to be the problem. Even if it isn't the root cause, it should be |
Fixed in #152. Feel free to reopen if there is more to discuss. |
Originated in #150.
They are not.
In case it helps you in any way, here's the
modify()
-function (the important thing to note is that1
in switch_n_keys`. It always is the same):Here's a new weird thing, that might help us here and/or in #150:
I have modified the
apply()
-function so that the cost also gets printed:This led to some interesting results:
If everything works fine (except for #150, of course), this now is the output:
Everything's fine. However, when the bug comes through, the cost I print is different to the cost: xxx.xxxxxx!
Here's what that looks like (It's from the same run as the log above, 2 seconds later):
The text was updated successfully, but these errors were encountered: