Skip to content

Commit

Permalink
ch10 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Dec 5, 2019
1 parent 018aced commit c485d49
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 27 deletions.
68 changes: 44 additions & 24 deletions ch10/ch10.ipynb

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions ch10/ch10.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@


df = pd.read_csv('https://raw.githubusercontent.com/rasbt/'
'python-machine-learning-book-2nd-edition'
'/master/code/ch10/housing.data.txt',
'python-machine-learning-book-3rd-edition/'
'master/ch10/housing.data.txt',
header=None,
sep='\s+')

Expand Down Expand Up @@ -154,7 +154,8 @@

cols = ['LSTAT', 'INDUS', 'NOX', 'RM', 'MEDV']

scatterplotmatrix(df[cols].values, figsize=(10, 8), names=cols)
scatterplotmatrix(df[cols].values, figsize=(10, 8),
names=cols, alpha=0.5)
plt.tight_layout()
#plt.savefig('images/10_03.png', dpi=300)
plt.show()
Expand Down

0 comments on commit c485d49

Please sign in to comment.