Can anyone help with me how to train new data with already saved pickle file?

Can anyone help me with the code me to train new data with already saved pickle file?

I've trained the model with RandomForestClassifier from sklearn and saved the model into .pickle Now I'm trying to retrain the model on new data with same features. I want to use pickle file to train one new data. Can anyone help me with this in terms of code?

Topic pickle machine-learning-model random-forest scikit-learn machine-learning

Category Data Science


Load the pickle file and your new data. Fit the loaded model on the data

model = pickle.load(open(pickle_file,'rb'))
model.fit(x_new, y_new)

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.