forked from Gab0/japonicus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjaponicus_options.py
23 lines (20 loc) · 1.02 KB
/
japonicus_options.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import optparse
parser = optparse.OptionParser()
parser.add_option('-g', '--genetic', dest='genetic_algorithm',
action='store_true', default=False)
parser.add_option('-c', '--chromosome', dest='chromosome_mode',
action='store_true', default=False)
parser.add_option('-i', '--indicators', dest='indicator_mode',
action='store_true', default=False)
parser.add_option('-b', '--bayesian', dest='bayesian_optimization',
action='store_true', default=False)
parser.add_option('-k', '--gekko', dest='spawn_gekko',
action='store_true', default=False)
parser.add_option('-r', '--random', dest='random_strategy',
action='store_true', default=False)
parser.add_option('-w', '--web', dest='spawn_web',
action='store_true', default=False)
parser.add_option('--repeat <x>', dest='repeater',
type=int, default=1)
parser.add_option('--strat <strat>', dest='strategy', default=None)
options, args = parser.parse_args()