-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.py
25 lines (19 loc) · 649 Bytes
/
search.py
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
import argparse
from pyroFAE1 import pyroFAE1
from pyroFAE2 import pyroFAE2
from pyroFAE3 import pyroFAE3
parser = argparse.ArgumentParser(
prog = 'search.py',
description = 'Performs a search for an optimizied neural network weight set for a simulated robot using FAEry Algorithms')
parser.add_argument('-m', '--method', choices=['1', '2', '3'], default='1')
args = parser.parse_args()
if args.method == '1':
evolutionary_algorithm = pyroFAE1()
elif args.method == '2':
evolutionary_algorithm = pyroFAE2()
elif args.method == '3':
evolutionary_algorithm = pyroFAE3()
else:
exit()
evolutionary_algorithm.evolve()
exit()