-
Notifications
You must be signed in to change notification settings - Fork 270
Spruce up deterministic_cache, ecosystem and eigen #1197
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
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.
Just a couple of typos from me. Otherwise, looks great! Thank you.
axelrod/ecosystem.py
Outdated
|
||
An ecosystem runs in the context of a previous tournament, and takes the | ||
results as input. That means no matches are run by the ecosystem, and a | ||
tournament needs to happen before it is create. For example: |
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.
typo: create should be created
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.
Done.
axelrod/ecosystem.py
Outdated
tournament = axelrod.Tournament(players=players) | ||
results = tournament.play() | ||
ecosystem = axelrod.Ecosystem(results) | ||
acosystem.reproduce(100) |
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.
typo: acosystem
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.
Done.
No real comment from me, CI is failing on a test that seem unrelated:
Perhaps the seed is being offset somewhere? EDIT: The same test has failed on #1198 (4919dd2) but there only on Appveyor (it passed on travis). I see this looks like it might be related to f474f2e |
axelrod/ecosystem.py
Outdated
|
||
def __init__(self, results: ResultSet, | ||
fitness: Callable[[float], float] = None, | ||
population: List[int] = None) -> None: | ||
"""Create a new ecosystem. | ||
|
||
Paramters |
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.
typo: Parameters
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.
Done.
If you could pull-rebase/merge on to master @langner those two failures should now be fixed 👍 |
* Minor improvements to docstrings and unit tests for ecosystem * Simplified unit tests for deterministic_cache a little bit more * Minor edits to eigen module, and made several function internal
Thanks for fixing the seed thing, I wouldn't have figured it out that fast by myself! This should now be good to go. |
No problem at all :) This all looks good to me now, merge when you're happy @meatballs 👍 |
Next batch for #347