Skip to content
Snippets Groups Projects
Commit ac007046 authored by Ludovic Moncla's avatar Ludovic Moncla
Browse files

udpate

parent 1373e8e0
No related branches found
No related tags found
No related merge requests found
...@@ -99,16 +99,16 @@ for columnInput in [columnText, 'firstParagraph']: ...@@ -99,16 +99,16 @@ for columnInput in [columnText, 'firstParagraph']:
if clf_name != 'bayes' : if clf_name != 'bayes' :
clf = GridSearchCV(clf, grid_param, refit = True, verbose = 3) clf = GridSearchCV(clf, grid_param, refit = True, verbose = 3)
else if feature_technique_name == 'doc2vec': elif feature_technique_name == 'doc2vec':
continue continue
t_begin = time.time() t_begin = time.time()
if os.path.isfile(os.path.join('./model', model_file_name)): if os.path.isfile(os.path.join('./models', model_file_name)):
with open(model_file_name, 'rb') as file: with open(os.path.join('./models', model_file_name), 'rb') as file:
clf = pickle.load(file) clf = pickle.load(file)
else: else:
with open(Pkl_Filename, 'wb') as file: with open(os.path.join('./models', model_file_name), 'wb') as file:
clf.fit(train_x, train_y) clf.fit(train_x, train_y)
pickle.dump(clf, file) pickle.dump(clf, file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment