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

Change optimizer callback signature to allow custom stopping criteria #603

Open
fzimmermann89 opened this issue Jan 13, 2025 · 0 comments
Open
Labels
enhancement New feature or request priority: low

Comments

@fzimmermann89
Copy link
Member

Suggestion:
We could change the signature of the callback of the optimizers to Callable[[OptimizerStatus], None|bool]
Returning False form the callback would stop the optimizer.

This would allow for a custom stopping criterion.

@fzimmermann89 fzimmermann89 added enhancement New feature or request priority: low labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: low
Projects
None yet
Development

No branches or pull requests

1 participant