-
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
Extend testing of MuPlusLambda class #171
Conversation
Coverage behaves strangely: I wrote explicit tests for both errors raised in the algorithm, but it still reports the 2nd one to be not covered by the tests. |
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.
wow, awesome, you're fast! 🚀 i've added a few comments that should be a addressed before merging.
further, could you please also implement a test that makes sure we prefer offsprings with equal fitness over their parents? we claim that in the comment before the construction of combined
and it's very important for the algorithm to work properly.
could you please also write a simple test for _compute_fitness
, i think that's only tested implicit currently.
3e1109f
to
e6a9688
Compare
Thanks for your feedback, I implemented the suggestions and addressed all comments. Please check again @jakobj |
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.
looks great, just a few minor suggestions.
your inline comments all start with a capital letter, while most of the others in the package start with a lower case one. am i missing something here? shouldn't this somehow be regulated by black?
I am not aware of any policy regarding capitalization of inline comments, neither in pep8 (https://www.python.org/dev/peps/pep-0008/#inline-comments) nor in black. |
Thanks @jakobj , I used your suggestions. |
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.
awesome, thanks, looks great! 👍
oh one more thing: could you please squash the commits before merging? |
Add tests for single function of MuPlusLambda class Co-authored-by: Jakob Jordan <1562742+jakobj@users.noreply.github.com>
dbef582
to
8dc4c20
Compare
closes #166