Mercurial > hg > plosone_underreview
comparison notebooks/sensitivity_experiment_server.py @ 32:e732f41ec019 branch-tests
sensitivity.py
author | mpanteli <m.x.panteli@gmail.com> |
---|---|
date | Wed, 13 Sep 2017 19:57:32 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
27:e4736064d282 | 32:e732f41ec019 |
---|---|
1 import numpy as np | |
2 import sys | |
3 sys.path.append('../') | |
4 import scripts.load_dataset as load_dataset | |
5 | |
6 df = load_dataset.sample_dataset(csv_file=load_dataset.METADATA_FILE) | |
7 OUTPUT_FILES = load_dataset.OUTPUT_FILES | |
8 n_iters = 1 | |
9 n = int(sys.argv[1]) | |
10 | |
11 #for n in range(n_iters): | |
12 if 1: | |
13 print "iteration %d" % n | |
14 load_dataset.OUTPUT_FILES = [output_file.split('.pickle')[0]+'_'+str(n)+'.pickle' for | |
15 output_file in OUTPUT_FILES] | |
16 load_dataset.features_for_train_test_sets(df, write_output=True) |