Giter VIP home page Giter VIP logo

Comments (10)

marcharper avatar marcharper commented on July 24, 2024

They are both zero determinant strategies. ZDChi is correct as submitted but ZDGTFT2 needs to be fixed for your game matrix. I left it in since it did reasonably well.

See the following references:
http://www.pnas.org/content/109/26/10409.abstract
http://www.pnas.org/content/109/26/10134.short
http://www.nr.com/whp/StewartPlotkinExtortion2012.pdf

as well as this blog entry:

https://golem.ph.utexas.edu/category/2012/07/zerodeterminant_strategies_in.html

from axelrod.

drvinceknight avatar drvinceknight commented on July 24, 2024

Thanks @marcharper, will get to it at some point. References are very helpful.

from axelrod.

drvinceknight avatar drvinceknight commented on July 24, 2024

Hey @marcharper I've worked on this a bit (the first strategy): https://github.com/Axelrod-Python/Axelrod/tree/102-ZDChi

Note that reading through the original paper the assumption there does not hold here as the game here aims to minimize the utilities. So the condition T>R>P>S is actually inverted. Without spending a while looking at the paper do you think that this would have an effect on the values for p_1, p_2, p_3, p_4?

I note for example that the test I have added gives a value of four_vector the one for p_4 to be greater than 1.

Let me know what you think before I open a pull request to get this in the library, it wan't actually need much work now.

The second missing strategy though I have not gotten to at all yet.

from axelrod.

drvinceknight avatar drvinceknight commented on July 24, 2024

from axelrod.

drvinceknight avatar drvinceknight commented on July 24, 2024

Have checked through paper (which is a really nice paper btw - I had not actually gotten around to reading it). This PR #144 incorporates the first strategy, I will make my way to the second when I get a chance.

from axelrod.

marcharper avatar marcharper commented on July 24, 2024

I'm not sure that the conditions matter as long as the Press and Dyson determinant is used correctly. I can try to work out the correct values for ZDGTFT2, unfortunately that reference is a light on details.

from axelrod.

drvinceknight avatar drvinceknight commented on July 24, 2024

I had a hard time going for the ZDGTFT2 myself because of lack of
references. It would be good to have it in terms of the RPST values
though...

I'd suggest waiting: on #148 we're discussing changing the default payoffs
to be in line with the payoffs in the original paper.

On Mon, 13 Apr 2015 18:53 Marc Harper [email protected] wrote:

I'm not sure that the conditions matter as long as the Press and Dyson
determinant is used correctly. I can try to work out the correct values for
ZDGTFT2, unfortunately that reference is a light on details.

β€”
Reply to this email directly or view it on GitHub
#102 (comment)
.

from axelrod.

drvinceknight avatar drvinceknight commented on July 24, 2024

@marcharper #152 (which is a merged PR) now means that the default behaviour of the game is in line with literature. For ZDGTFT2 though, the out of the box version from that blog post still has some hard coded values, if you (or indeed we) could get the algebra right so that it handles any given RPTS that would be ideal (I know what you mean about the paper's details being a bit weak).

Let me know what you think.

from axelrod.

marcharper avatar marcharper commented on July 24, 2024

I can probably make this happen....

from axelrod.

marcharper avatar marcharper commented on July 24, 2024

So it turns out that there are infinitely many strategies satisfying the condition in the reference, so the strategy ZDGTFT2 is not uniquely defined by the information given, and that the various ZD strategies cannot be defined for arbitrary game matrices (depends on if there are certain relations satisfied by the values R, S, T, and P), so I did the best I could and made easy parameter choices. It doesn't help that one of the references uses 1/chi where the other uses chi (!). I tried to use the variables from the reference in case anyone looks at it later (otherwise the lines of code could be reduced by a few).

I think this is the best we can do short of emailing the authors.

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.