-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.py
25 lines (17 loc) · 939 Bytes
/
train.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
import argparse
import AdaNet
parser = argparse.ArgumentParser(description='Create & train AdaNet model')
parser.add_argument('feature_loc', metavar='F', type=str, nargs='1',
help='location of the FBank feature h5 file')
parser.add_argument('annot_loc', metavar='A', type=str, nargs='1',
help='location of the annotation h5 file')
parser.add_argument('model_loc', default=None,
help='location of the model. If left empty, new model is created')
parser.add_argument('model_target', default=None,
help='location of the model. If left empty, new model is created')
parser.add_argument('-e', default=10,
help='Number of training epochs')
parser.add_argument('-b', default=100,
help='Batch size')
args = parser.parse_args()
AdaNet.__main__(args)