Skip to content

Commit

Permalink
Update all notebooks assuming we are all in the future now: sklearn 0…
Browse files Browse the repository at this point in the history
….20+, python 3.5+, TF 2.0 preview
  • Loading branch information
ageron committed Jan 18, 2019
1 parent 3d121e2 commit b84060d
Show file tree
Hide file tree
Showing 12 changed files with 13,210 additions and 3,936 deletions.
6 changes: 3 additions & 3 deletions 01_the_machine_learning_landscape.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
],
"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",
Expand Down Expand Up @@ -2458,7 +2457,6 @@
],
"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",
Expand Down Expand Up @@ -2939,6 +2937,7 @@
"outputs": [],
"source": [
"# Replace this linear model:\n",
"import sklearn.linear_model\n",
"model = sklearn.linear_model.LinearRegression()"
]
},
Expand All @@ -2949,6 +2948,7 @@
"outputs": [],
"source": [
"# with this k-neighbors regression model:\n",
"import sklearn.neighbors\n",
"model = sklearn.neighbors.KNeighborsRegressor(n_neighbors=3)"
]
},
Expand Down Expand Up @@ -2980,7 +2980,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 - tf2",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand Down
Loading

0 comments on commit b84060d

Please sign in to comment.