question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mismatch of history vs optimizer reported optimal values

See original GitHub issue

When executing the rosenbrock.ipynb notebook on develop branch, I get massive complaints:

Function values from history and optimizer do not match: 1.3168387678656086, 2.0179911928533514
Parameters obtained from history and optimizer do not match: [0.99553374 0.98995083 0.97544456 0.94768476 0.89550744 0.8019584
 0.64185456 0.40180156 0.14794723 0.00844711], [0.9940831  0.98497745 0.96635783 0.93780681 0.87380595 0.74153588
 0.53395112 0.25523609 0.03957006 0.00100739]
Function values from history and optimizer do not match: 1.6349167203078765, 2.336760892779954

I guess something must still be wrong about history values vs. values returned by optimizers. Happens for various optimizers.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
dweindlcommented, Dec 7, 2021

Agreed that it’s good to have both available. My guess would be that users mostly care about good parameters and less so about whether they were (what some optimizer considers) the final parameters, or whether they occurred elsewhere. So history_beats_optimizer_result=True would be a reasonable default for me. Can live with either, though. Regarding warning: If we have a history_beats_optimizer_result option, I would not issue a warning anymore. If at all, then only debug-level logging.

1reaction
paulstaporcommented, May 13, 2020

Same here…

Read more comments on GitHub >

github_iconTop Results From Across the Web

[2106.02175] Linear regression with partially mismatched data
We propose and study a simple greedy local search algorithm for this optimization problem that enjoys strong theoretical guarantees and ...
Read more >
optimal control design that accounts for model mismatch errors
A new technique is presented in this paper that reduces the complexity of state differential equations while accounting for modeling assumptions. The mis-....
Read more >
Influencing the Optimizer - Oracle Help Center
When you set the OPTIMIZER_MODE value to ALL_ROWS , the database uses the least amount of resources necessary to process all rows that...
Read more >
ASA FAQ: Why does the "show failover history" command ...
Failover functionality requires that the active and standby appliance configurations remain synchronized. A show failover history command ouput sometimes shows.
Read more >
Robust adaptive beamforming using worst-case performance ...
Robust adaptive beamforming using worst-case performance optimization: a solution to the signal mismatch problem. Abstract: Adaptive beamforming methods are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found