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

main
Aurélien Geron 2021-10-11 09:29:04 +13:00
parent 59b6c5c72b
commit 35c84808ed
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@
"from sklearn import preprocessing\n", "from sklearn import preprocessing\n",
"from sklearn import pipeline\n", "from sklearn import pipeline\n",
"\n", "\n",
"poly = preprocessing.PolynomialFeatures(degree=60, include_bias=False)\n", "poly = preprocessing.PolynomialFeatures(degree=30, include_bias=False)\n",
"scaler = preprocessing.StandardScaler()\n", "scaler = preprocessing.StandardScaler()\n",
"lin_reg2 = linear_model.LinearRegression()\n", "lin_reg2 = linear_model.LinearRegression()\n",
"\n", "\n",