Commit b6c36b42 authored by Mohammadreza's avatar Mohammadreza

nr: refactor

parent 63e3f20d
Pipeline #201 failed with stages
...@@ -161,7 +161,7 @@ plt.show() ...@@ -161,7 +161,7 @@ plt.show()
# # save the classifier # # save the classifier
# model = {'model': svclassifier, 'scaler': scaler} # model = {'model': svclassifier, 'scaler': scaler}
# with open('svclassifier_new3.pkl', 'wb') as fid: # with open('svclassifier_new.pkl', 'wb') as fid:
# pickle.dump(model, fid) # pickle.dump(model, fid)
# rfc = RandomForestClassifier(max_depth=10, random_state=0) # rfc = RandomForestClassifier(max_depth=10, random_state=0)
......
...@@ -23,7 +23,7 @@ def feature_extraction(data_): ...@@ -23,7 +23,7 @@ def feature_extraction(data_):
# load classifier # load classifier
with open('svclassifier_new3.pkl', 'rb') as fid: with open('svclassifier_new.pkl', 'rb') as fid:
my_model = pickle.load(fid) my_model = pickle.load(fid)
model = my_model['model'] model = my_model['model']
scaler = my_model['scaler'] scaler = my_model['scaler']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment