Sklearn How to Save a Model Created From a Pipeline and GridSearchCV Using Joblib or Pickle?

import joblib
joblib.dump(grid.best_estimator_, 'filename.pkl')

If you want to dump your object into one file – use:

joblib.dump(grid.best_estimator_, 'filename.pkl', compress = 1)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)