mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Update all notebooks assuming we are all in the future now: sklearn 0.20+, python 3.5+, TF 2.0 preview
This commit is contained in:
@@ -102,7 +102,6 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Code example\n",
|
||||
"import matplotlib as mpl\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"import numpy as np\n",
|
||||
"import pandas as pd\n",
|
||||
@@ -495,7 +494,6 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Code example\n",
|
||||
"import matplotlib as mpl\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"import numpy as np\n",
|
||||
"import pandas as pd\n",
|
||||
@@ -684,6 +682,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Replace this linear model:\n",
|
||||
"import sklearn.linear_model\n",
|
||||
"model = sklearn.linear_model.LinearRegression()"
|
||||
]
|
||||
},
|
||||
@@ -694,6 +693,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# with this k-neighbors regression model:\n",
|
||||
"import sklearn.neighbors\n",
|
||||
"model = sklearn.neighbors.KNeighborsRegressor(n_neighbors=3)"
|
||||
]
|
||||
},
|
||||
@@ -717,7 +717,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 - tf2",
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user