From 7335c9d5c015775c271f1ddb81c0886f5cf5af1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Fri, 26 Apr 2019 21:22:15 +0800 Subject: [PATCH] Use separate joblib package rather than the one in sklearn (which is deprecated) --- 02_end_to_end_machine_learning_project.ipynb | 2 +- requirements.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/02_end_to_end_machine_learning_project.ipynb b/02_end_to_end_machine_learning_project.ipynb index 95fcd36..39d9a38 100644 --- a/02_end_to_end_machine_learning_project.ipynb +++ b/02_end_to_end_machine_learning_project.ipynb @@ -1594,7 +1594,7 @@ "metadata": {}, "outputs": [], "source": [ - "from sklearn.externals import joblib\n", + "import joblib\n", "joblib.dump(my_model, \"my_model.pkl\") # DIFF\n", "#...\n", "my_model_loaded = joblib.load(\"my_model.pkl\") # DIFF" diff --git a/requirements.txt b/requirements.txt index 4953bf4..944adb1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -85,6 +85,9 @@ scikit-image==0.14.2 # Nice utility to diff Jupyter Notebooks. #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 # tutorial). numexpr==2.6.9