-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add example for regression with multiple genomes #230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work! ✨
added a few minor comments
e6f537f
to
4bf1b90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just two minor suggestions, otherwise i'm happy 👍
please squash before merging
examples/example_multi_genome.py
Outdated
# transformations to the input depending whether the input is less or greater | ||
# than zero. We thus need to fit two different functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# transformations to the input depending whether the input is less or greater | |
# than zero. We thus need to fit two different functions. | |
# transformations to the input depending whether the input is less than zero or not. | |
# We thus need to fit two different functions. |
or some other formulation to include "equal to zero"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks done.
examples/example_multi_genome.py
Outdated
|
||
|
||
# %% | ||
# After finishing the evolution, we plot the result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it would be nice here to print the expressions encoded in the individual?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thanks, added it.
Co-authored-by: Jakob Jordan <[email protected]>
4bf1b90
to
70f3d6a
Compare
This PR adds an example for multiple regression. It is based on
example_minimal.py
and modifies the target function to be piecewise defined.