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

Improve global bootstrap optimizer configuration #2080

Merged

Conversation

eltoder
Copy link
Contributor

@eltoder eltoder commented Sep 27, 2024

Currently global bootstrap uses "accuracy" in several different ways:

  • For all parameters passed to LevenbergMarquardt.
  • For all epsilon parameters passed to EndCriteria.
  • As the upper bound on the final value of the cost function.

This overloading makes it quite inflexible. Instead:

  • Allow passing optimizer and EndCriteria to the constructor, which allows full control over all parameters.
  • Instead of checking the final value of the cost function, check the result type from the optimizer.

Also, cleanup LevenbergMarquardt optimizer: remove commented out code, fix parameters passed to MINPACK.

Currently global bootstrap uses "accuracy" in several different ways:
* For all parameters passed to LevenbergMarquardt.
* For all epsilon parameters passed to EndCriteria.
* As the upper bound on the final value of the cost function.

This overloading makes it quite inflexible. Instead:
* Allow passing optimizer and EndCriteria to the constructor, which
  allows full control over all parameters.
* Instead of checking the final value of the cost function, check the
  result type from the optimizer.

Also, cleanup LevenbergMarquardt optimizer: remove commented out code,
fix parameters passed to MINPACK.
@eltoder
Copy link
Contributor Author

eltoder commented Sep 27, 2024

CC @pcaspers in case you are interested. I believe you wrote some of this code.

@eltoder
Copy link
Contributor Author

eltoder commented Sep 27, 2024

@lballabio the codacy error is a very obvious false positive. Is there a way to suppress it?

@coveralls
Copy link

coveralls commented Sep 27, 2024

Coverage Status

coverage: 72.676% (+0.002%) from 72.674%
when pulling 0e4c3df on eltoder:feature/global-bootstrap-accuracy
into 1af4f82 on lballabio:master.

@lballabio
Copy link
Owner

Is there a way to suppress it?

Yes, I'll silence it next week when I'm back from a few days off

@lballabio lballabio added this to the Release 1.36 milestone Oct 3, 2024
@lballabio lballabio merged commit e366a83 into lballabio:master Oct 3, 2024
43 checks passed
@eltoder eltoder deleted the feature/global-bootstrap-accuracy branch October 5, 2024 16:34
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

Successfully merging this pull request may close these issues.

3 participants