How to use save model for prediction in python
问题 I am doing a text classification in python and I want to use it in production environment for making prediction on new document. I am using TfidfVectorizer to build bagofWord. I am doing: X_train = vectorizer.fit_transform(clean_documents_for_train, classLabel).toarray() Then I am doing cross validation and building the model using SVM. After that I am saving the model. For making prediction on my test data I am loading that model in another script where I have the same TfidfVectorizer and I