Coder Social home page Coder Social logo

Create a BoxPlot class about axelrod HOT 20 CLOSED

meatballs avatar meatballs commented on May 30, 2024
Create a BoxPlot class

from axelrod.

Comments (20)

drvinceknight avatar drvinceknight commented on May 30, 2024

Tagging myself in as I think I can help with this one.

from axelrod.

meatballs avatar meatballs commented on May 30, 2024

I've made a start on this one - branch 88 in my fork.

from axelrod.

drvinceknight avatar drvinceknight commented on May 30, 2024

πŸ‘ Will try to get to it.

from axelrod.

drvinceknight avatar drvinceknight commented on May 30, 2024

Also, pretty sure we can add matplotlib as a dependency on travis... Let me go check that...

from axelrod.

drvinceknight avatar drvinceknight commented on May 30, 2024

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.

meatballs avatar meatballs commented on May 30, 2024

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.

drvinceknight avatar drvinceknight commented on May 30, 2024

I've got some time, so taking a look now.

from axelrod.

drvinceknight avatar drvinceknight commented on May 30, 2024

Found the error somewhere, I think your numpy array is carrying out integer division... Finding where that happens now.

from axelrod.

drvinceknight avatar drvinceknight commented on May 30, 2024

Think I've fixed it: sending you a PR (apologies in advance if I just confused myself).

from axelrod.

drvinceknight avatar drvinceknight commented on May 30, 2024

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.

drvinceknight avatar drvinceknight commented on May 30, 2024

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.

meatballs avatar meatballs commented on May 30, 2024

I'll have a look some time tomorrow - thanks for the help

from axelrod.

drvinceknight avatar drvinceknight commented on May 30, 2024

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.

meatballs avatar meatballs commented on May 30, 2024

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.

drvinceknight avatar drvinceknight commented on May 30, 2024

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.

meatballs avatar meatballs commented on May 30, 2024

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.

drvinceknight avatar drvinceknight commented on May 30, 2024

(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.

meatballs avatar meatballs commented on May 30, 2024

On second thoughts, I'll leave the de-numpification for a separate PR.

from axelrod.

drvinceknight avatar drvinceknight commented on May 30, 2024

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.

meatballs avatar meatballs commented on May 30, 2024

(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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.