Comments (20)
Tagging myself in as I think I can help with this one.
from axelrod.
I've made a start on this one - branch 88 in my fork.
from axelrod.
π Will try to get to it.
from axelrod.
Also, pretty sure we can add matplotlib as a dependency on travis... Let me go check that...
from axelrod.
Yeah looks fine:
http://docs.travis-ci.com/user/languages/python/
Here's a SO question (mainly due to a problem with python 3 so not relevant): http://stackoverflow.com/questions/1739494/travis-ci-matplotlib-dependency-and-python3
from axelrod.
I'm hitting the matlibplot problem again - must be something I don't understand about the library.
Line 47 in run_tournament.py ought to give the same results as line 48, but doesn't.
from axelrod.
I've got some time, so taking a look now.
from axelrod.
Found the error somewhere, I think your numpy array is carrying out integer division... Finding where that happens now.
from axelrod.
Think I've fixed it: sending you a PR (apologies in advance if I just confused myself).
from axelrod.
Ok, I think I have to actually 'request that you pull', I can't seem to get github to send you a nice pull request as I did not fork your fork...
https://github.com/drvinceknight/Axelrod/tree/88
Let me know if that doesn't work :) π
from axelrod.
That branch failed on travis for me by the way (but I just checked that outputs where the same, didn't run tests).
from axelrod.
I'll have a look some time tomorrow - thanks for the help
from axelrod.
My pleasure (if I understood the issue correctly obviously).
On Sat, Mar 7, 2015 at 9:38 PM Owen Campbell [email protected]
wrote:
I'll have a look some time tomorrow - thanks for the help
β
Reply to this email directly or view it on GitHub
https://github.com/drvinceknight/Axelrod/issues/88#issuecomment-77711428
.
from axelrod.
Yep - that works!! (But why did that need adding to the method, when it's not required within run_tournament.py)?
I'll finish this off and submit a PR when I'm done
from axelrod.
Yep - that works!!
Awesome!
(But why did that need adding to the method, when it's not required within run_tournament.py)?
Because at the top of run_tournament
we tweak the division: from __future__ import division
. I wouldn't want to do this throughout axelrod
but in a script that makes use of the library I thought it was fine. When we eventually package this so that people can run all sorts of different types of tournaments I'd want them to know that 'normal' Python 2 division is still going (even though it's a pain).
Any chance of you de-numpying? No problem if not, can get to that at another time.
from axelrod.
Agggghhhhhhh!!!! Missed that subtlety entirely!!!
OK - I'll sort out the de-numpification and the try-catch for matplotlib before I create the PR.
from axelrod.
(By the way: the test suite you wrote, really is excellent I'm just writing a bunch of tests for #52 and it makes it really easy: thanks!)
Agggghhhhhhh!!!! Missed that subtlety entirely!!!
Hehe, yeah pretty much my first go to when debugging Python: 'integer division'?
Really no problem if the de-numpy thing doesn't happen, I expect that'll be a weekend job to go through everything at some point...
from axelrod.
On second thoughts, I'll leave the de-numpification for a separate PR.
from axelrod.
Yeah, completely fine: we're in transition :D
On Sun, Mar 8, 2015 at 2:55 PM Owen Campbell [email protected]
wrote:
On second thoughts, I'll leave the de-numpification for a separate PR.
β
Reply to this email directly or view it on GitHub
https://github.com/drvinceknight/Axelrod/issues/88#issuecomment-77753430
.
from axelrod.
(By the way: the test suite you wrote, really is excellent I'm just writing a bunch of tests for #52 and it makes it really easy: thanks!)
You're welcome. I had to write it for myself in order to understand properly what most of the code was actually doing!!
from axelrod.
Related Issues (20)
- Reorganisation of documentation. HOT 3
- Reorganisation ? of cheating strategies
- Add a citation.cff file HOT 6
- Links to contributing guide broken by docs restructure
- CI failing due to typing issues HOT 3
- Implement asymmetric games HOT 6
- Game classification HOT 4
- Implement abstract games more fully (5.0.0)
- Restructure strategies folder HOT 4
- Documentation for 5.0.0
- Simplify/move the `ResultSet` HOT 1
- Expressing in a formal logical language HOT 2
- You may have missed some details in your code HOT 1
- I couldn't find the strategy submitted by Mauk in the competition for 19th place HOT 2
- If I want to test the first tournament, what should I do based on your codeοΌ HOT 2
- Do you know the source code of the first tournament? HOT 2
- axelrod.plot.Plot may be incompatible with recent Pandas udpates HOT 2
- Change the TFT in the first tournament HOT 3
- High-noise Tournament for comparison HOT 1
- Supporting Python 3.12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axelrod.