Skip to content

Commit acbda92

Browse files
committed
Fix permutation error in b vector
2 parents d77c710 + 24385b5 commit acbda92

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎CH01/CH01_SEC04_3_Housing.ipynb‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 2,
5+
"execution_count": 4,
66
"metadata": {},
77
"outputs": [
88
{
@@ -50,7 +50,6 @@
5050
"\n",
5151
"ax2 = fig.add_subplot(122)\n",
5252
"sort_ind = np.argsort(H[:,-1])\n",
53-
"#b = b[sort_ind] # sorted values\n",
5453
"plt.plot(b[sort_ind], Color='k', LineWidth=2, label='Housing Value') # True relationship\n",
5554
"plt.plot(A[sort_ind,:]@x, '-o', Color='r', LineWidth=1.5, MarkerSize=6, label='Regression')\n",
5655
"plt.xlabel('Neighborhood')\n",
@@ -61,7 +60,7 @@
6160
},
6261
{
6362
"cell_type": "code",
64-
"execution_count": 3,
63+
"execution_count": 5,
6564
"metadata": {},
6665
"outputs": [
6766
{

‎README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Data_Driven_Science_Python_Demos
2+
3+
<img src="http://www.databookuw.com/files/stacks-image-5bffc53-882x1200.png" alt="Data Driven Book Cover" width="200"/>
4+
5+
IPython notebooks with demo code intended as a companion to the book:
6+
7+
8+
Data Driven Science & Engineering: Machine Learning, Dynamical Systems, and Control
9+
by S. L. Brunton and J. N. Kutz
10+
Cambridge Textbook, 2019
11+
Copyright 2019, All Rights Reserved
12+
13+
14+
Python code library by Daniel Dylewsky. This code and equivalent Matlab code are available at http://www.databookuw.com/. There are a few items that are only available in the Matlab version. Many of these notebooks make use of third-party Python modules. Download links for the more obscure ones are provided inline.
15+
16+
Please cite this book when using this code/data.

0 commit comments

Comments
 (0)