Skip to content

Commit 02ded56

Browse files
committed
Update Readme
1 parent 881829e commit 02ded56

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

README.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,26 @@ pip install axelrod numpy cloudpickle
88

99
Clone this repository
1010

11+
## Some Changes
12+
13+
In the original repository the strategies were run against all the default strategies in the Axelrod library. This is slow and probably not necessary. For example the Meta* players are just combinations of the other players, and very computationally intensive; it's probably ok to remove those.
14+
15+
This fork uses a subset of about 90 strategies, excluding the most computationally intensives (e.g. the hunters).
16+
17+
## The strategies
18+
19+
The LookerUp strategies are based on lookup tables with two parameters:
20+
* n, the number of rounds of trailing history to use and
21+
* m, the number of rounds of initial opponent play to use
22+
23+
### Open questions
24+
25+
* What's the best table for n, m?
26+
* What's the best table against parameterized strategies. For example, if the opponents are `[RandomPlayer(x) for x in np.arange(0, 1, 0.01)], what lookup table is best? Is it much different from the generic table?
27+
* Can we separate n into n1 and n2 where different amounts of history are used for the player and the opponent?
28+
* Incorporate @GKDO's swarm model that makes the tables non-deterministic, for the same values of n and m. Does this produce better results for all n and m?
29+
30+
1131
## Running
1232

1333
`python lookup-evolve.py -h`
@@ -16,7 +36,7 @@ will display help. There are a number of options and you'll want to set the muta
1636

1737

1838
Here are some recommended defaults:
19-
39+
```
2040
python lookup_evolve.py -p 3 -s 3 -g 100000 -k 20 -u 0.01 -b 20 -i 4 -o evolve3-3.csv
2141
2242
python lookup_evolve.py -p 3 -s 2 -g 100000 -k 20 -u 0.03 -b 20 -i 4 -o evolve3-2.csv
@@ -26,11 +46,15 @@ python lookup_evolve.py -p 3 -s 1 -g 100000 -k 20 -u 0.06 -b 20 -i 4 -o evolve3
2646
python lookup_evolve.py -p 1 -s 3 -g 100000 -k 20 -u 0.03 -b 20 -i 4 -o evolve1-3.csv
2747
2848
python lookup_evolve.py -p 2 -s 3 -g 100000 -k 20 -u 0.03 -b 20 -i 4 -o evolve2-3.csv
29-
49+
```
3050
### 2, 2 is the current winner:
31-
51+
```
3252
python lookup_evolve.py -p 2 -s 2 -g 100000 -k 20 -u 0.06 -b 20 -i 4 -o evolve2-2.csv
33-
53+
```
3454
### 4, 4
55+
```
56+
python lookup_evolve.py -p 4 -s 4 -g 100000 -k 20 -u 0.01 -b 20 -i 4 -o evolve4-4.csv
57+
```
58+
## Analyzing
3559

36-
python lookup_evolve.py -p 4 -s 4 -g 100000 -k 20 -u 0.01 -b 20 -i 4 -o evolve4-4.csv
60+
The output files `evolve{n}-{m}.csv` can be easily sorted by `analyze_data.py`, which will output the best performing tables. These can be added back into Axelrod.

0 commit comments

Comments
 (0)