模型保存

BP:model.save(save_dir)

SVM:

from sklearn.externals import joblib
joblib.dump(clf, save_dir)

模型调用:

BP:

from keras.models import load_model
model = load_model(open_dir)

SVM:

from sklearn.externals import joblib
model = joblib.load(open_dir)
05-11 10:50