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:
Aurélien Geron
2019-01-18 23:08:37 +08:00
parent 10c432a997
commit 6b8dff91d0
12 changed files with 1186 additions and 2625 deletions

View File

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