-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.py
More file actions
43 lines (37 loc) · 691 Bytes
/
parser.py
File metadata and controls
43 lines (37 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
"-s",
"--size",
type=int,
help="Sets players amount",
default=25,
)
parser.add_argument(
"-f",
"--fitness_cutoff",
type=int,
default=5,
help="Sets the fitness_cutoff for the players",
)
parser.add_argument(
"-mr",
"--mutation_rate",
type=float,
default=0.05,
help="Sets the mutation rate for the dna",
)
parser.add_argument(
"-wp",
"--win_percent",
type=float,
default=0.75,
help="Sets the win_percent",
)
parser.add_argument(
"-mi",
"--max_iter",
type=int,
default=1000,
help="Sets the max_iter for the game",
)