0

I've built a model in Python and saved it with joblib from sklearn.externals package:

from sklearn.externals import joblib

joblib.dump(rf_Prob_F, 'Model.pkl') 

When I try to call the model with the following command, an error appears:

from sklearn.externals import joblib

rf_Prob_F = joblib.load(rf_Prob_F, 'Model.pkl')

NameError: name 'rf_Prob_F' is not defined

What am I missing?

Thank you for your help!

aaron
  • 39,695
  • 6
  • 46
  • 102
Charles
  • 43
  • 1
  • 6

1 Answers1

3

As written in the documentation for joblib.load(), you need only the name of the file as an argument:

rf_Prob_F = joblib.load('Model.pkl')
aaron
  • 39,695
  • 6
  • 46
  • 102
v100ev
  • 176
  • 5