From 821bf1ef606fcfacb75260ae524a968c8a3804bb Mon Sep 17 00:00:00 2001 From: DroidEvolver <47264370+DroidEvolver@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:40:51 +0800 Subject: [PATCH] Update model_pool_construction.py --- model_pool_construction.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/model_pool_construction.py b/model_pool_construction.py index a398aae..a43bb3a 100644 --- a/model_pool_construction.py +++ b/model_pool_construction.py @@ -1,7 +1,5 @@ ''' -To use: python with_true_label_train.py --starting 2011 - -GOAL: generate the original detection model for the starting year (applying all data from the starting year as training data) +GOAL: generate the initial detection model for the starting year ''' import numpy as np import scipy @@ -23,12 +21,11 @@ import argparse def main(): parser = argparse.ArgumentParser() - parser.add_argument('--starting', type=int, help='directory for initialization data') # to use = args.past + parser.add_argument('--starting', type=int, help='directory for initialization data') args = parser.parse_args() starting_year = args.starting - - + X_train,Y_train=load_svmlight_file(str(starting_year)) print 'X_train data shape' , type(X_train), X_train.shape