Reduce polynomial degree from 60 to 30 to avoid infinity error since sklearn 1.0
parent
59b6c5c72b
commit
35c84808ed
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue