cross_val_score does not change your score or return a built-in score. It simply returns a cross-validation evaluation score.
- .
() - pickle:
gnb.fit(data_numpy[0], data_numpy[1])
import pickle
with open('our_estimator.pkl', 'wb') as fid:
pickle.dump(gnb, fid)
with open('our_estimator.pkl', 'rb') as fid:
gnb = pickle.load(fid)