@@ -15,16 +15,53 @@ def parse_predict_args():
1515 parser = argparse .ArgumentParser (
1616 formatter_class = argparse .ArgumentDefaultsHelpFormatter
1717 )
18+
19+ # General arguments
1820 parser .add_argument ('--data_path' , type = str , required = True ,
1921 help = 'Path to data containing states for prediction task' )
2022 parser .add_argument ('--model' , type = str , required = True ,
2123 help = 'Path to trained model' )
24+ parser .add_argument ('--output_dim' , type = int , required = True ,
25+ help = 'Dimensionality of predictions' )
2226 parser .add_argument ('--data_path2' , type = str ,
2327 help = 'Path to additional observable states for prediction' )
2428 parser .add_argument ('--save_path' , type = str , default = os .path .join (os .getcwd (), 'preds.csv' ),
2529 help = 'Path to save predictions to' )
30+ parser .add_argument ('--cpu' , action = 'store_true' ,
31+ help = 'Run on CPU instead of GPU' )
2632 parser .add_argument ('--batch_size' , type = int , default = 32 ,
2733 help = 'Batch size' )
34+
35+ # Encoder arguments
36+ parser .add_argument ('--feat_maps' , type = int , default = 16 ,
37+ help = 'Number of feature maps in first convolutional layer' )
38+ parser .add_argument ('--first_conv_size' , type = int , default = 7 ,
39+ help = 'Filter size in first convolutional layer' )
40+ parser .add_argument ('--first_conv_stride' , type = int , default = 2 ,
41+ help = 'Strides in first convolutional layer' )
42+ parser .add_argument ('--first_pool_size' , type = int , default = 3 ,
43+ help = 'Window size in first pool' )
44+ parser .add_argument ('--first_pool_stride' , type = int , default = 2 ,
45+ help = 'Strides in first pool' )
46+ parser .add_argument ('--growth_rate' , type = int , default = 12 ,
47+ help = 'Growth rate in dense blocks' )
48+ parser .add_argument ('--blocks' , type = int , nargs = '+' , default = [3 , 4 , 5 ],
49+ help = 'Numbers of layers in each dense block' )
50+ parser .add_argument ('--dropout' , type = float , default = 0.0 ,
51+ help = 'Dropout rate after convolutions' )
52+ parser .add_argument ('--reduction' , type = float , default = 0.5 ,
53+ help = 'Compression rate in transition blocks' )
54+ parser .add_argument ('--no_bottleneck' , action = 'store_true' ,
55+ help = 'Do not use bottleneck convolution in dense blocks' )
56+ parser .add_argument ('--flatten_last' , action = 'store_true' ,
57+ help = 'Flatten instead of global pool before output' )
58+
59+ # RNN arguments
60+ parser .add_argument ('--rnn_layers' , type = int , default = 1 ,
61+ help = 'Number of RNN layers' )
62+ parser .add_argument ('--rnn_units' , type = int , default = 100 ,
63+ help = 'Number of units in RNN' )
64+
2865 return parser .parse_args ()
2966
3067
0 commit comments