-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Steppable Optimizers #8150
Steppable Optimizers #8150
Conversation
Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: Julien Gacon <gaconju@gmail.com>
…iskit-terra into stepOptimizer_alpha
Step optimizer alpha
Modified Gradient Descent
root seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
Co-authored-by: Julien Gacon <gaconju@gmail.com>
…iskit-terra into stepOptimizer_alpha
Step optimizer alpha
Modified Gradient Descent
Co-authored-by: Julien Gacon <gaconju@gmail.com>
…skit-terra into stepOptimizer_beta
Co-authored-by: Julien Gacon <gaconju@gmail.com>
93c5f58
to
4bc39a9
Compare
d86d38d
to
ec9d693
Compare
Summary
We incorporate a new subclass of Optimizer called SteppableOptimizer. A steppable optimizer has a method step() that allows to perform one single step in the optimization process as opposed to having to perform the whole minimization of the objective function.
This way the user has more options when dealing with complicated functions to minimize.
In this spirit, we have chosen to add ask() and tell() to this interface as well. More information about this can be found in the documentation.
The main goal of this PR is to implement the interface of the abstract class SteppableOptimizer and document it properly. In order to make some tests, we have implemented GradientDescent using this new framework.
Details and comments
A class CMA-ES is also in the making, but I prefered to start by making this PR with GradientDescent because it is easier to implement and later on we can add this other class.