Reduce polynomial degree from 60 to 30 to avoid infinity error since sklearn 1.0

This commit is contained in:
Aurélien Geron
2021-10-11 09:29:04 +13:00
parent 59b6c5c72b
commit 35c84808ed

View File

@@ -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",