1

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?

Nithin Reddy
  • 181
  • 1
  • 9

1 Answers1

1

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)
Kasra Manshaei
  • 6,752
  • 1
  • 23
  • 46