Skip to content
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

More example and visualization notebooks #813

Open
marcharper opened this issue Jan 11, 2017 · 6 comments
Open

More example and visualization notebooks #813

marcharper opened this issue Jan 11, 2017 · 6 comments

Comments

@marcharper
Copy link
Member

marcharper commented Jan 11, 2017

We could use some more examples and demos in our notebooks repository. Just advertising for the other repository, please open PRs there.

@nadia39
Copy link

nadia39 commented Feb 12, 2017

I would like to assist in this issue, could you give me more information on what you need?

@drvinceknight
Copy link
Member

I would like to assist in this issue, could you give me more information on what you need?

Hi @nadia39 great to have you assist!

If you take a look at this repository: https://github.com/Axelrod-Python/Axelrod-notebooks we have a number of Jupyter notebook examples showing a variety of things that can be done with the library. We're always looking for more examples which is what this issue is asking for.

Perhaps take a look through the documentation http://axelrod.readthedocs.io/en/latest/ and see if you think there's anything specific worth adding as a Jupyter notebook?

@SirRichter
Copy link

Is there a strategy where the player assumes that their opponent's probability of defecting is a Bernoulli variable, where the parameter is based on a Bayesian analysis of the opponent's previous moves?

@marcharper
Copy link
Member Author

@SirRichter Not one that explicitly uses a Bayesian prior AFAIK. There are some strategies that attempt to determine the opponent's probability of cooperating in various ways, such as the running counts of the opponent's plays, which would correspond to some uninformative prior (Beta(0, 0) I guess) and then taking the posterior maximum.

Feel free to implement such a strategy (ideally using scipy) and open a PR on the main repository.

@danilobellini
Copy link
Member

I've created one in Brazilian Portuguese: https://github.com/danilobellini/notebooks/blob/master/2018-11-10_Axelrod/2018-11-10_Axelrod.ipynb

Shall I make a PR based on it? The stuff from there I may add in a PR are:

  • The Detective and Simpleton strategies (which I wrote in Python based on the Nicky Case example)
  • The notebook itself (which is mainly a "Getting started, step by step", but in Brazilian Portuguese)

@drvinceknight
Copy link
Member

Hi @danilobellini! Great use of the library 👍

I've grabbed these screenshots from https://ncase.me/trust/:

screenshot from 2018-11-20 09-16-28
screenshot from 2018-11-20 09-13-52

I don't immediately believe those strategies are implemented yet so they are welcome (although at a glance I'm not convinced that you've implemented Detective as described but that can be discussed on the PR, I could be mistaken).

Information about contributing is available here: https://axelrod.readthedocs.io/en/stable/tutorials/contributing/strategy/index.html

The notebook would not go in this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants