Skip to content

Commit ebcdf99

Browse files
authored
Merge pull request #1384 from Axelrod-Python/marcharper-patch-1
Update citations.md
2 parents 4764c35 + 532c6f6 commit ebcdf99

File tree

3 files changed

+37
-30
lines changed

3 files changed

+37
-30
lines changed

axelrod/fingerprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def fingerprint(
441441
filename: str = None,
442442
progress_bar: bool = True,
443443
seed: int = None,
444-
) -> np.array:
444+
) -> np.ndarray:
445445
"""Creates a spatial tournament to run the necessary matches to obtain
446446
fingerprint data.
447447

axelrod/strategies/ann.py

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def num_weights(num_features, num_hidden):
2222
return size
2323

2424

25-
def compute_features(player: Player, opponent: Player) -> List[int]:
25+
def compute_features(player: Player, opponent: Player) -> np.ndarray:
2626
"""
2727
Compute history features for Neural Network:
2828
* Opponent's first move is C
@@ -91,38 +91,39 @@ def compute_features(player: Player, opponent: Player) -> List[int]:
9191
total_player_c = player.cooperations
9292
total_player_d = player.defections
9393

94-
return [
95-
opponent_first_c,
96-
opponent_first_d,
97-
opponent_second_c,
98-
opponent_second_d,
99-
my_previous_c,
100-
my_previous_d,
101-
my_previous2_c,
102-
my_previous2_d,
103-
opponent_previous_c,
104-
opponent_previous_d,
105-
opponent_previous2_c,
106-
opponent_previous2_d,
107-
total_opponent_c,
108-
total_opponent_d,
109-
total_player_c,
110-
total_player_d,
111-
len(player.history),
112-
]
94+
return np.array(
95+
(
96+
opponent_first_c,
97+
opponent_first_d,
98+
opponent_second_c,
99+
opponent_second_d,
100+
my_previous_c,
101+
my_previous_d,
102+
my_previous2_c,
103+
my_previous2_d,
104+
opponent_previous_c,
105+
opponent_previous_d,
106+
opponent_previous2_c,
107+
opponent_previous2_d,
108+
total_opponent_c,
109+
total_opponent_d,
110+
total_player_c,
111+
total_player_d,
112+
len(player.history),
113+
)
114+
)
113115

114116

115117
def activate(
116118
bias: List[float],
117119
hidden: List[float],
118120
output: List[float],
119-
inputs: List[int],
121+
inputs: np.ndarray,
120122
) -> float:
121123
"""
122124
Compute the output of the neural network:
123125
output = relu(inputs * hidden_weights + bias) * output_weights
124126
"""
125-
inputs = np.array(inputs)
126127
hidden_values = bias + np.dot(hidden, inputs)
127128
hidden_values = relu(hidden_values)
128129
output_value = np.dot(hidden_values, output)

citations.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Citations
22

3+
### 2021
4+
5+
* Glynatsi, Nikoleta E., and Vincent A. Knight. "A bibliometric study of research topics, collaboration, and centrality in the iterated prisoner’s dilemma." Humanities and Social Sciences Communications 8.1 (2021): 1-12. [Nature.com](https://www.nature.com/articles/s41599-021-00718-9) [ArXiv](https://arxiv.org/abs/1911.06128)
6+
37
### 2020
48

9+
* Kies, Martin. "Finding Best Answers for the Iterated Prisoner’s Dilemma Using Improved Q-Learning." [Available at SSRN 3556714](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3556714) (2020).
510
* Krapohl, Sebastian, Václav Ocelík, and Dawid M. Walentek. "The instability of globalization: applying evolutionary game theory to global trade cooperation." [Public Choice](https://ideas.repec.org/a/kap/pubcho/vyid10.1007_s11127-020-00799-1.html) (2020): 1-21.
611
* Glynatsi, Nikoleta E., and Vincent A. Knight. "A meta analysis of tournaments and an evaluation of performance in the Iterated Prisoner's Dilemma" arXiv preprint arXiv:2001.05911 (2019). [ArXiv](https://arxiv.org/abs/2001.05911)
712
* Wang, Shiheng, and Fangzhen Lin. "Nice Invincible Strategy for the Average-Payoff IPD." [Proceedings of the AAAI Conference on Artificial Intelligence](https://aaai.org/ojs/index.php/AAAI/article/view/5604)
@@ -10,8 +15,8 @@
1015

1116
### 2019
1217

13-
* T.J. Gaffney, Marc Harper, Vincent A. Knight. "Memory depth of finite state machine strategies for the iterated prisoner's dilemm" arXiv preprint arxiv:1912.04493 (2019). [ArXiv](https://arxiv.org/abs/1912.04493)
14-
* Glynatsi, Nikoleta E., and Vincent A. Knight. "A bibliometric study of research topics, collaboration and influence in the field of the Iterated Prisoner's Dilemma" arXiv preprint arXiv:1911.06128 (2019). [ArXiv](https://arxiv.org/abs/1911.06128)
18+
* Thomas, Robert W., and José M. Vidal. "Ad Hoc Vehicle Platoon Formation." [2019 SoutheastCon. IEEE](Emergence and Stability of Self-Evolved Cooperative Strategies using Stochastic Machines) (2019)
19+
* T.J. Gaffney, Marc Harper, Vincent A. Knight. "Memory depth of finite state machine strategies for the iterated prisoner's dilemma" arXiv preprint arxiv:1912.04493 (2019). [ArXiv](https://arxiv.org/abs/1912.04493)
1520
* O'Neil, Daniel A., and Mikel D. Petty. "Synthesizing Social Networks with Iterated Prisoners' Dilemma." [Proceedings of the International Conference on Modeling, Simulation and Visualization Methods (MSV).](https://csce.ucmss.com/cr/books/2019/LFS/CSREA2019/MSV2345.pdf) The Steering Committee of The World Congress in Computer Science, Computer Engineering and Applied Computing (WorldComp), 2019.
1621
* Collins, David. "A Genetic Algorithm Approach to the Iterated Prisoner’s Dilemma." [Undergraduate Research in Natural and Clinical Science and Technology Journal](https://urncst.com/index.php/urncst/article/view/155) (2019): 1-9.
1722
* Wang, Shiheng, and Fangzhen Lin. "Invincible Strategies of Iterated Prisoner's Dilemma." Proceedings of the 18th International Conference on Autonomous Agents and MultiAgent Systems. International Foundation for Autonomous Agents and Multiagent Systems, 2019. [ArXiv](https://arxiv.org/abs/1712.06488)
@@ -24,12 +29,11 @@
2429
* Latorre, Julian F. and Ospina, Juan Pablo and Ortiz, Jorge E. "A Coalitional Game for Achieving Emergent Cooperation in Ad Hoc Networks Through Sympathy and Commitment." Springer (2018). [Springer](https://link.springer.com/chapter/10.1007/978-3-030-00350-0_30)
2530
* Moura, Jose, and David Hutchison. "Game Theory for Multi-Access Edge Computing: Survey, Use Cases, and Future Trends." IEEE Communications Surveys & Tutorials (2018). [IEEE CS&T](https://ieeexplore.ieee.org/abstract/document/8424815) [ArXiv](https://arxiv.org/abs/1704.00323)
2631
* Neumann, Shai and Sood, Suraj and Hollander, Markus et al. "Using Bots in Strategizing Group Compositions to Improve Decision--Making Processes" Springer (2018). [Springer](https://link.springer.com/chapter/10.1007/978-3-319-91467-1_24)
27-
* Nicolas, Anastassacos and Mirco, Musolesi. "Learning through Probing: a decentralized reinforcement learning architecture for social dilemmas."arXiv preprint arXiv:1809.10007 (2018). [ArXiv](https://arxiv.org/abs/1809.10007)
32+
* Nicolas, Anastassacos and Mirco, Musolesi. "Learning through Probing: a decentralized reinforcement learning architecture for social dilemmas." arXiv preprint arXiv:1809.10007 (2018). [ArXiv](https://arxiv.org/abs/1809.10007)
2833
* Skiba, Grażyna, et al. "Flexible asynchronous simulation of iterated prisoner’s dilemma based on actor model." Simulation Modelling Practice and Theory 83 (2018): 75-92.
2934

3035
### 2017
3136

32-
* Hayes, Victoria. The Evolution of Cooperation: A Recreation of Axelrod's Computer Tournament. The University of North Carolina at Greensboro, (2017). [PDF](http://libres.uncg.edu/ir/uncg/f/Hayes_uncg_0154M_12243.pdf)
3337
* Harper, Marc, et al. "Reinforcement learning produces dominant strategies for the Iterated Prisoner’s Dilemma." PloS one 12.12 (2017): e0188046. [PLOS](http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0188046)
3438

3539
### 2016
@@ -40,8 +44,10 @@
4044

4145
* Knight, Vincent. "Playing Games: A Case Study in Active Learning Applied to Game Theory." [MSOR Connections 14.1 (2015): 28-38](https://journals.gre.ac.uk/index.php/msor/article/download/254/254).
4246

43-
### Other Preprints and Disserations
47+
### Disserations
4448

45-
* Thomas, Robert W., and José M. Vidal. "Ad Hoc Vehicle Platoon Formation." (2019) [Preprint](http://jmvidal.cse.sc.edu/papers/thomas19a.pdf)
49+
* Glynatsi, Nikoleta. "Understanding responses to environments for the Prisoner's Dilemma: A meta analysis, multidimensional optimisation and machine learning approach". PhD Thesis, Cardiff University. (2020) [Available Online](http://orca.cf.ac.uk/135221/).
50+
* Santana, Jonas Cardoso Carvalho. "Aprendizado de máquina e o dilema dos prisioneiros". (2020)
4651
* Black, Ben. "An Empirical Evaluation of the Ohtsuki-Nowak Approximation." [Master's Thesis](https://www.lancaster.ac.uk/~blackb/documents/MScDiss.pdf). (2018).
47-
* Zakirov, Bahti. "Modes of Information Flow." (2017) [Preprint](http://london.ucdavis.edu/~reu/REU17/Papers/zakirov.pdf)
52+
* Hayes, Victoria. The Evolution of Cooperation: A Recreation of Axelrod's Computer Tournament. The University of North Carolina at Greensboro, (2017). [PDF](http://libres.uncg.edu/ir/uncg/f/Hayes_uncg_0154M_12243.pdf)
53+
* Latorre Ochoa, Julian Felipe. "Compromiso y simpatía: emotividad en la toma de decisiones cooperativas en redes estocásticas de siguiente generación". [Available online](https://repositorio.unal.edu.co/handle/unal/60956) (2017)

0 commit comments

Comments
 (0)