-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathparser_arguments.py
executable file
·37 lines (32 loc) · 2.46 KB
/
parser_arguments.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
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 5 16:35:35 2017
Grouping all parsers specifications here
@author: anazabal, olmosUC3M, ivaleraM
"""
import argparse
def getArgs(argv=None):
parser = argparse.ArgumentParser(description='Default parameters of the models',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--batch_size', type=int, default=200, help='Size of the batches')
parser.add_argument('--epochs',type=int,default=5001, help='Number of epochs of the simulations')
parser.add_argument('--perp',type=int,default=10, help='Perplexity for the t-SNE')
parser.add_argument('--train', type=int,default=1, help='Training model flag')
parser.add_argument('--display', type=int,default=1, help='Display option flag')
parser.add_argument('--save', type=int,default=1000, help='Save variables every save iterations')
parser.add_argument('--restore', type=int,default=0, help='To restore session, to keep training or evaluation')
parser.add_argument('--plot', type=int,default=1, help='Plot results flag')
parser.add_argument('--dim_latent_s',type=int,default=10, help='Dimension of the categorical space')
parser.add_argument('--dim_latent_z',type=int,default=2, help='Dimension of the Z latent space')
parser.add_argument('--dim_latent_y',type=int,default=10, help='Dimension of the Y latent space')
parser.add_argument('--dim_latent_y_partition',type=int, nargs='+', help='Partition of the Y latent space')
parser.add_argument('--miss_percentage_train',type=float,default=0.0, help='Percentage of missing data in training')
parser.add_argument('--miss_percentage_test',type=float,default=0.0, help='Percentage of missing data in test')
parser.add_argument('--model_name', type=str, default='model_new', help='File of the training model')
parser.add_argument('--save_file', type=str, default='new_mnist_zdim5_ydim10_4images_', help='Save file name')
parser.add_argument('--data_file', type=str, default='MNIST_data', help='File with the data')
parser.add_argument('--types_file', type=str, default='mnist_train_types2.csv', help='File with the types of the data')
parser.add_argument('--miss_file', type=str, default='Missing_test.csv', help='File with the missing indexes mask')
parser.add_argument('--true_miss_file', type=str, help='File with the missing indexes when there are NaN in the data')
return parser.parse_args(argv)