From 35c84808ed52134a90070964bd6e19e37e8c2d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Mon, 11 Oct 2021 09:29:04 +1300 Subject: [PATCH] Reduce polynomial degree from 60 to 30 to avoid infinity error since sklearn 1.0 --- 01_the_machine_learning_landscape.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_the_machine_learning_landscape.ipynb b/01_the_machine_learning_landscape.ipynb index fb012b3..0ed1a25 100644 --- a/01_the_machine_learning_landscape.ipynb +++ b/01_the_machine_learning_landscape.ipynb @@ -687,7 +687,7 @@ "from sklearn import preprocessing\n", "from sklearn import pipeline\n", "\n", - "poly = preprocessing.PolynomialFeatures(degree=60, include_bias=False)\n", + "poly = preprocessing.PolynomialFeatures(degree=30, include_bias=False)\n", "scaler = preprocessing.StandardScaler()\n", "lin_reg2 = linear_model.LinearRegression()\n", "\n",