Add import os

main
Aurélien Geron 2016-05-22 18:07:41 +02:00
parent 4c588afbb8
commit 0222dd54af
4 changed files with 8 additions and 3 deletions

View File

@ -21,6 +21,8 @@
"import numpy.random as rnd\n",
"rnd.seed(42) # to make this notebook's output stable across runs\n",
"\n",
"import os\n",
"\n",
"%matplotlib inline\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",

View File

@ -33,6 +33,8 @@
"source": [
"from __future__ import division, print_function, unicode_literals\n",
"\n",
"import os\n",
"\n",
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"plt.rcParams['axes.labelsize'] = 14\n",

View File

@ -20,6 +20,8 @@
"source": [
"from __future__ import division, print_function, unicode_literals\n",
"\n",
"import os\n",
"\n",
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"\n",

View File

@ -17,13 +17,12 @@
"source": [
"from __future__ import division, print_function, unicode_literals\n",
"\n",
"import os\n",
"\n",
"import numpy as np\n",
"import numpy.random as rnd\n",
"rnd.seed(42) # to make this notebook's output stable across runs\n",
"\n",
"from sklearn.linear_model import LinearRegression\n",
"LinearRegression().fit([[5]], [3])\n",
"\n",
"%matplotlib inline\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",