Open cmd-ke opened 1 year ago
"NotFittedError: This MultinomialNB instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator."
Tried to solve but no success yet
import pickle mnb.fit(X_train,y_train) y_pred2 = mnb.predict(X_test) pickle.dump(tfidf,open('vectorizer.pkl','wb')) pickle.dump(mnb,open('model.pkl','wb'))
"Use this with dum and create its work"
How can this problem be resolved "NotFittedError: This MultinomialNB instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator."
Tried to solve but no success yet