-
Notifications
You must be signed in to change notification settings - Fork 268
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 new gradual and discussion of tournament #1299
Add new gradual and discussion of tournament #1299
Conversation
Added more to description as well. I've also added the /~https://github.com/cristal-smac/ipd repo to our bibliography. (Using 2018 which was the date of their first commit).
I've added the longer tests from the discussion at #1294
Beaufils et al.'s tournament (1997) | ||
----------------------------------- | ||
|
||
In 1997, [Beaufils1997]_ presented used a tournament to describe a new strategy |
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 here: 'presented used'
|
||
if len(self.history) == 0: | ||
return C | ||
|
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.
niggle: too many empty lines (black might need running here)
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.
b7ff5c6 ran black on the file
No idea why the travis build is not appearing, it is happening here: https://travis-ci.org/github/Axelrod-Python/Axelrod/jobs/666857590?utm_medium=notification&utm_source=github_status |
I suggest not worrying about it (we can still make sure the tests pass of course by looking directly at travis) as we will be moving to GitHub actions (see #1297) |
Here's the link to the various branch builds: https://travis-ci.org/github/Axelrod-Python/Axelrod/branches?utm_medium=notification&utm_source=github_status |
@@ -466,6 +689,9 @@ def test_output_from_literature(self): | |||
Dilemma" Proc. Artif. Life 1996 | |||
|
|||
This test just ensures that the strategy is as was originally defined. | |||
|
|||
See /~https://github.com/Axelrod-Python/Axelrod/issues/1294 for another | |||
discussion of this. |
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.
Should this be a test similar to test_specific_set_of_results
for Gradual
? Run the whole tournament and compare the scores?
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.
Sure why not. 👍
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.
Note that this will just repeat the doctest. (I'm fine with that.)
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.
Sure. It already does that but only for two strategies right?
We are testing the output of the paper so I suggest we include all of it, and it will follow the same format as the tests for Gradual
.
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 in 1c07e88
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 very good to me. Just have a minor point 👍
Instead of just checking two strategies, check the entire set of reported results in the paper.
Co-Authored-By: Nikoleta Glynatsi <GlynatsiNE@cardiff.ac.uk>
I think this is good to be merged now? |
Adds the new Gradual see discussion at #1294
Note I've gone with:
OriginalGradual
(the version that was in the library and that was used in the 1997 paper)Gradual
(the one the authors apparently meant to use).I've decided to not include
mistrust
or at least the broken version of mistrust that the authors used in #1294 that's needed to reproduce the results suggested in #1294, the authors meant for mistrust to beSuspicious Tit For Tat
which we have in the library (and this name is already noted there).Closes #1294