From 44aa3d24fb81002f1eb0342bed92dea016c8cfc7 Mon Sep 17 00:00:00 2001 From: cif2cif Date: Sat, 27 Feb 2021 21:30:21 +0100 Subject: [PATCH] Updated joblib import to sklearn 0.23 --- ml1/2_7_Model_Persistence.ipynb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ml1/2_7_Model_Persistence.ipynb b/ml1/2_7_Model_Persistence.ipynb index 5e9a5ff..3942b0a 100644 --- a/ml1/2_7_Model_Persistence.ipynb +++ b/ml1/2_7_Model_Persistence.ipynb @@ -117,7 +117,7 @@ "outputs": [], "source": [ "# save model\n", - "from sklearn.externals import joblib\n", + "import joblib\n", "joblib.dump(model, 'filename.pkl') \n", "\n", "#load model\n", @@ -151,6 +151,15 @@ } ], "metadata": { + "datacleaner": { + "position": { + "top": "50px" + }, + "python": { + "varRefreshCmd": "try:\n print(_datacleaner.dataframe_metadata())\nexcept:\n print([])" + }, + "window_display": false + }, "kernelspec": { "display_name": "Python 3", "language": "python", @@ -166,7 +175,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.7" + "version": "3.7.9" }, "latex_envs": { "LaTeX_envs_menu_present": true,