Skip to content

Commit 49e0809

Browse files
committed
Update readme commands for refactor
1 parent 448ee9e commit 49e0809

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Usage:
6363
lookup_evolve.py [-h] [--generations GENERATIONS] [--population POPULATION]
6464
[--mu MUTATION_RATE] [--bottleneck BOTTLENECK] [--processes PROCESSORS]
6565
[--output OUTPUT_FILE] [--objective OBJECTIVE] [--repetitions REPETITIONS]
66-
[--noise NOISE] [--nmoran NMORAN]
66+
[--turns TURNS] [--noise NOISE] [--nmoran NMORAN]
6767
[--plays PLAYS] [--op_plays OP_PLAYS] [--op_start_plays OP_START_PLAYS]
6868

6969
Options:
@@ -76,18 +76,14 @@ Options:
7676
--output OUTPUT_FILE File to write data to [default: lookup_tables.csv]
7777
--objective OBJECTIVE Objective function [default: score]
7878
--repetitions REPETITIONS Repetitions in objective [default: 100]
79+
--turns TURNS Turns in each match [default: 200]
7980
--noise NOISE Match noise [default: 0.00]
8081
--nmoran NMORAN Moran Population Size, if Moran objective [default: 4]
8182
--plays PLAYS Number of recent plays in the lookup table [default: 2]
8283
--op_plays OP_PLAYS Number of recent plays in the lookup table [default: 2]
8384
--op_start_plays OP_START_PLAYS Number of opponent starting plays in the lookup table [default: 2]
8485
```
8586
86-
There are a number of options and you'll want to set the
87-
mutation rate appropriately. The number of keys defining the strategy is
88-
`2**{n + m + 1}` so you want a mutation rate in the neighborhood of `2**(-n-m)`
89-
so that there's enough variation introduced.
90-
9187
### Particle Swarm
9288
9389
```bash
@@ -100,21 +96,19 @@ Based on Martin Jones @mojones original LookerUp code
10096

10197
Usage:
10298
pso_evolve.py [-h] [--generations GENERATIONS] [--population POPULATION]
103-
[--mu MUTATION_RATE] [--bottleneck BOTTLENECK] [--processes PROCESSORS]
104-
[--output OUTPUT_FILE] [--objective OBJECTIVE] [--repetitions REPETITIONS]
105-
[--noise NOISE] [--nmoran NMORAN]
99+
[--processes PROCESSORS] [--output OUTPUT_FILE] [--objective OBJECTIVE]
100+
[--repetitions REPETITIONS] [--turns TURNS] [--noise NOISE]
101+
[--nmoran NMORAN]
106102
[--plays PLAYS] [--op_plays OP_PLAYS] [--op_start_plays OP_START_PLAYS]
107103

108104
Options:
109105
-h --help Show help
110-
--generations GENERATIONS Generations to run the EA [default: 500]
111106
--population POPULATION Starting population size [default: 10]
112-
--mu MUTATION_RATE Mutation rate [default: 0.1]
113-
--bottleneck BOTTLENECK Number of individuals to keep from each generation [default: 5]
114107
--processes PROCESSES Number of processes to use [default: 1]
115108
--output OUTPUT_FILE File to write data to [default: pso_tables.csv]
116109
--objective OBJECTIVE Objective function [default: score]
117110
--repetitions REPETITIONS Repetitions in objective [default: 100]
111+
--turns TURNS Turns in each match [default: 200]
118112
--noise NOISE Match noise [default: 0.00]
119113
--nmoran NMORAN Moran Population Size, if Moran objective [default: 4]
120114
--plays PLAYS Number of recent plays in the lookup table [default: 2]
@@ -139,7 +133,7 @@ Usage:
139133
ann_evolve.py [-h] [--generations GENERATIONS] [--population POPULATION]
140134
[--mu MUTATION_RATE] [--bottleneck BOTTLENECK] [--processes PROCESSORS]
141135
[--output OUTPUT_FILE] [--objective OBJECTIVE] [--repetitions REPETITIONS]
142-
[--noise NOISE] [--nmoran NMORAN]
136+
[--turns TURNS] [--noise NOISE] [--nmoran NMORAN]
143137
[--features FEATURES] [--hidden HIDDEN] [--mu_distance DISTANCE]
144138
145139
Options:
@@ -152,6 +146,7 @@ Options:
152146
--output OUTPUT_FILE File to write data to [default: ann_weights.csv]
153147
--objective OBJECTIVE Objective function [default: score]
154148
--repetitions REPETITIONS Repetitions in objective [default: 100]
149+
--turns TURNS Turns in each match [default: 200]
155150
--noise NOISE Match noise [default: 0.00]
156151
--nmoran NMORAN Moran Population Size, if Moran objective [default: 4]
157152
--features FEATURES Number of ANN features [default: 17]
@@ -169,19 +164,20 @@ Usage:
169164
fsm_evolve.py [-h] [--generations GENERATIONS] [--population POPULATION]
170165
[--mu MUTATION_RATE] [--bottleneck BOTTLENECK] [--processes PROCESSORS]
171166
[--output OUTPUT_FILE] [--objective OBJECTIVE] [--repetitions REPETITIONS]
172-
[--noise NOISE] [--nmoran NMORAN]
167+
[--turns TURNS] [--noise NOISE] [--nmoran NMORAN]
173168
[--states NUM_STATES]
174169
175170
Options:
176171
-h --help Show help
177172
--generations GENERATIONS Generations to run the EA [default: 500]
178-
--population POPULATION Starting population size [default: 10]
173+
--population POPULATION Population size [default: 40]
179174
--mu MUTATION_RATE Mutation rate [default: 0.1]
180-
--bottleneck BOTTLENECK Number of individuals to keep from each generation [default: 5]
175+
--bottleneck BOTTLENECK Number of individuals to keep from each generation [default: 10]
181176
--processes PROCESSES Number of processes to use [default: 1]
182177
--output OUTPUT_FILE File to write data to [default: fsm_tables.csv]
183178
--objective OBJECTIVE Objective function [default: score]
184179
--repetitions REPETITIONS Repetitions in objective [default: 100]
180+
--turns TURNS Turns in each match [default: 200]
185181
--noise NOISE Match noise [default: 0.00]
186182
--nmoran NMORAN Moran Population Size, if Moran objective [default: 4]
187183
--states NUM_STATES Number of FSM states [default: 8]

0 commit comments

Comments
 (0)