Use separate joblib package rather than the one in sklearn (which is deprecated)

main
Aurélien Geron 2019-04-26 21:22:15 +08:00
parent 327407501e
commit 7335c9d5c0
2 changed files with 4 additions and 1 deletions

View File

@ -1594,7 +1594,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"from sklearn.externals import joblib\n", "import joblib\n",
"joblib.dump(my_model, \"my_model.pkl\") # DIFF\n", "joblib.dump(my_model, \"my_model.pkl\") # DIFF\n",
"#...\n", "#...\n",
"my_model_loaded = joblib.load(\"my_model.pkl\") # DIFF" "my_model_loaded = joblib.load(\"my_model.pkl\") # DIFF"

View File

@ -85,6 +85,9 @@ scikit-image==0.14.2
# Nice utility to diff Jupyter Notebooks. # Nice utility to diff Jupyter Notebooks.
#nbdime==1.0.5 #nbdime==1.0.5
# Joblib is a set of tools to provide lightweight pipelining
joblib==0.13.2
# May be useful with Pandas for complex "where" clauses (e.g., Pandas # May be useful with Pandas for complex "where" clauses (e.g., Pandas
# tutorial). # tutorial).
numexpr==2.6.9 numexpr==2.6.9