AxelrodExamples
:bar_chart: Analysis and examples for the Axelrod-Python library
Install / Use
/learn @Axelrod-Python/AxelrodExamplesREADME
AxelrodExamples
Strategy visualizations and example tournaments for the iterated Prisoner's Dilemma library Axelrod.
Strategy Visualizations
The first strategy visualization displays how often a strategy cooperates with every other strategy per round, averaged over many interactions (~200 repeated games between every pair of strategies).
Cooperation Rate Heatmaps
<b>ZDGTFT2</b><br/>
<div style="text-align:center"> <p>Left: no noise | Right: 5% noise</p> <img src ="http://www.marcharper.codes/axelrod/heatmaps/cooperation/ZD-GTFT-2: 0.25, 0.5.png" width="45%" alt="Cooperation Rate Heatmap"/> <img src ="http://www.marcharper.codes/axelrod/heatmaps/cooperation-noisy/ZD-GTFT-2: 0.25, 0.5.png" width="45%" alt="Cooperation Rate Heatmap with 5% noise"/> </div><b>Calculator</b><br/>
<div style="text-align:center"> <p>Left: no noise | Right: 5% noise</p> <img src ="http://www.marcharper.codes/axelrod/heatmaps/cooperation/Calculator.png" width="45%" alt="Cooperation Heatmap"/> <img src ="http://www.marcharper.codes/axelrod/heatmaps/cooperation-noisy/Calculator.png" width="45%" alt="Cooperation Heatmap with 5% noise"/> </div>As you can see, the introduction of noise alters the efficacy of Calculator's cycle detection algorithm.
Average Score Heatmaps
We can also visualize the average payoff per round earned by each strategy versus every other strategy per round, averaged over many interactions (~200 repeated games between every pair of strategies).
<b>Alternator</b><br/>
<div style="text-align:center"> <p>Left: no noise | Right: 5% noise</p> <img src ="http://www.marcharper.codes/axelrod/heatmaps/score/Alternator.png" width="45%" alt="Average Score Heatmap"/> <img src ="http://www.marcharper.codes/axelrod/heatmaps/score-noisy/Alternator.png" width="45%" alt="Average Score Heatmap with 5% noise"/> </div><b>Evolved ANN 5 Noise 05</b><br/>
Mean Score Heatmap
<div style="text-align:center"> <p>Left: no noise | Right: 5% noise</p> <img src ="http://www.marcharper.codes/axelrod/heatmaps/score/Evolved ANN 5 Noise 05.png" width="45%" alt="Mean Score Heatmap"/> <img src ="http://www.marcharper.codes/axelrod/heatmaps/score-noisy/Evolved ANN 5 Noise 05.png" width="45%" alt="Mean Score Heatmap with 5% noise"/> </div>
All Strategies Heatmaps
Click to see all the renderings for each strategy.
- $\phi$
- $\pi$
- $e$
- ALLCorALLD
- Adaptive
- Adaptive Pavlov 2006
- Adaptive Pavlov 2011
- Adaptive Tit For Tat: 0.5
- Aggravater
- Alexei: ('D',)
- Alternator
- Alternator Hunter
- Anti Tit For Tat
- AntiCycler
- Appeaser
- Arrogant QLearner
- Average Copier
- BackStabber: ('D', 'D')
- Better and Better
- Bully
- Calculator
- Cautious QLearner
- Champion
- CollectiveStrategy
- Contrite Tit For Tat
- Cooperator
- Cooperator Hunter
- Cycle Hunter
- Cycler CCCCCD
- Cycler CCCD
- Cycler CCCDCD
- Cycler CCD
- Cycler DC
- Cycler DDC
- DBS: 0.75, 3, 4, 3, 5
- Davis: 10
- Defector
- Defector Hunter
- Desperate
- DoubleCrosser: ('D', 'D')
- DoubleResurrection
- Doubler
- Dynamic Two Tits For Tat
- EasyGo
- Eatherley
- EugineNier: ('D',)
- Eventual Cycle Hunter
- Evolved ANN
- Evolved ANN 5
- Evolved ANN 5 Noise 05
- Evolved FSM 16
- Evolved FSM 16 Noise 05
- Evolved FSM 4
- Evolved HMM 5
- EvolvedLookerUp1_1_1
- EvolvedLookerUp2_2_2
- Feld: 1.0, 0.5, 200
- Firm But Fair
- Fool Me Forever
- Fool Me Once
- Forgetful Fool Me Once: 0.05
- Forgetful Grudger
- Forgiver
- Forgiving Tit For Tat
- Fortress3
- Fortress4
- GTFT: 0.33
- General Soft Grudger: n=1,d=4,c=2
- Gradual
- Gradual Killer: ('D', 'D', 'D', 'D', 'D', 'C', 'C')
- Grofman
- Grudger
- GrudgerAlternator
- Grumpy: Nice, 10, -10
- Handshake
- Hard Go By Majority
- Hard Go By Majority: 10
- Hard Go By Majority: 20
- Hard Go By Majority: 40
- Hard Go By Majority: 5
- Hard Prober
- Hard Tit For 2 Tats
- Hard Tit For Tat
- Hesitant QLearner
- Hopeless
- Inverse
- Inverse Punisher
- Joss: 0.9
- Knowledgeable Worse and Worse
- Level Punisher
- Limited Retaliate 2: 0.08, 15
- Limited Retaliate 3: 0.05, 20
- Limited Retaliate: 0.1, 20
- MEM2
- Math Constant Hunter
- Naive Prober: 0.1
- Negation
- Nice Average Copier
- Nydegger
- Omega TFT: 3, 8
- Once Bitten
- Opposite Grudger
- PSO Gambler 1_1_1
- PSO Gambler 2_2_2
- PSO Gambler 2_2_2 Noise 05
- PSO Gambler Mem1
- Predator
- Prober
- Prober 2
- Prober 3
- Prober 4
- Pun1
- Punisher
- Raider
- Random Hunter
- Random: 0.5
- Remorseful Prober: 0.1
- Resurrection
- Retaliate 2: 0.08
- Retaliate 3: 0.05
- Retaliate: 0.1
- Revised Downing: True
- Ripoff
- Risky QLearner
- SelfSteem
- ShortMem
- Shubik
- Slow Tit For Two Tats
- Slow Tit For Two Tats 2
- Sneaky Tit For Tat
- Soft Go By Majority
- Soft Go By Majority: 10
- Soft Go By Majority: 20
- Soft Go By Majority: 40
- Soft Go By Majority: 5
- [Soft Grudger](/strategies/Sof
