-
Notifications
You must be signed in to change notification settings - Fork 63
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
User interface improvements #34
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #34 +/- ##
===========================================
+ Coverage 52.97% 78.13% +25.15%
===========================================
Files 43 43
Lines 6233 6307 +74
===========================================
+ Hits 3302 4928 +1626
+ Misses 2931 1379 -1552
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
engintoklu
force-pushed
the
feature/user-interface
branch
from
November 15, 2022 14:18
311bcf0
to
42931a4
Compare
engintoklu
changed the title
Draft: User interface improvements
User interface improvements
Nov 15, 2022
engintoklu
requested review from
NaturalGradient,
Higgcz and
flukeskywalker
and removed request for
Higgcz
November 15, 2022 14:33
Higgcz
force-pushed
the
feature/user-interface
branch
6 times, most recently
from
November 23, 2022 22:16
7a8f0ea
to
9174017
Compare
I think this is ready to be merged. |
Higgcz
previously approved these changes
Nov 23, 2022
Higgcz
force-pushed
the
feature/user-interface
branch
from
November 23, 2022 22:37
9174017
to
12a33eb
Compare
Higgcz
previously approved these changes
Nov 24, 2022
Higgcz
force-pushed
the
feature/user-interface
branch
from
November 25, 2022 18:22
12a33eb
to
c8a0b0e
Compare
Higgcz
previously approved these changes
Nov 25, 2022
This commit brings various changes and improvements to the API of EvoTorch. - All pre-defined problem classes now have consistent default configuration: `num_actors=None`, `num_gpus_per_actor=None`. - New decorators: - `@on_device(device)`: Decorates a fitness function to make the associated problem object become aware of the device on which the evaluations are meant to happen - `@on_cuda(i)`: Decorates a fitness function to make the associated problem object aware of the CUDA device on which the evaluations are meant to happen - `@on_aux_device`: Decorates a fitness function to make the associated problem object become aware that the evaluations are meant to happen on the auxiliary device. - `@vectorized`: Decorates a fitness function to make the associated problem object become aware that the fitness function expects multiple solutions and returns multiple fitnesses. - The documentation is updated and improved.
- Quickstart example with different search algorithms - Simple Neuroevolution example - Problem definition of Neuroevolution for Gym example
This commit makes the API of `Problem` consistent with its docstring in this way: one can now omit `initial_bounds` and override the `_fill(...)` method for defining how the solutions should be initialized. Before this commit, one would have to specify dummy values for `initial_bounds` when using a `dtype` other than `object`. Unit tests are updated and improved regarding the API improvement mentioned above. This commit also brings new unit tests for the namespace `evotorch.optimizers`.
Higgcz
force-pushed
the
feature/user-interface
branch
from
December 21, 2022 21:39
604e687
to
8373ce3
Compare
Higgcz
approved these changes
Dec 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request aims to bring various changes and improvements to the API of EvoTorch.
num_actors=None
,num_gpus_per_actor=None
.@on_device(device)
: Decorates a fitness function to make the associated problem object become aware of the device on which the evaluations are meant to happen@on_cuda(i)
: Decorates a fitness function to make the associated problem object aware of the CUDA device on which the evaluations are meant to happen@on_aux_device
: Decorates a fitness function to make the associated problem object become aware that the evaluations are meant to happen on the auxiliary device.@vectorized
: Decorates a fitness function to make the associated problem object become aware that the fitness function expects multiple solutions and returns multiple fitnesses.