mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Reduce polynomial degree from 60 to 30 to avoid infinity error since sklearn 1.0
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user