Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Sep 15, 2017
1 parent 383ff17 commit 1bfb489
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions code/ch10/ch10.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@
" xticklabels=cols)\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('images/10_04.png', dpi=300)\n",
"# plt.savefig('images/10_04.png', dpi=300)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -712,7 +712,7 @@
"plt.xlabel('Average number of rooms [RM] (standardized)')\n",
"plt.ylabel('Price in $1000s [MEDV] (standardized)')\n",
"\n",
"plt.savefig('images/10_06.png', dpi=300)\n",
"#plt.savefig('images/10_06.png', dpi=300)\n",
"plt.show()"
]
},
Expand Down
4 changes: 2 additions & 2 deletions code/ch10/ch10.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
xticklabels=cols)

plt.tight_layout()
plt.savefig('images/10_04.png', dpi=300)
#plt.savefig('images/10_04.png', dpi=300)
plt.show()


Expand Down Expand Up @@ -262,7 +262,7 @@ def lin_regplot(X, y, model):
plt.xlabel('Average number of rooms [RM] (standardized)')
plt.ylabel('Price in $1000s [MEDV] (standardized)')

plt.savefig('images/10_06.png', dpi=300)
#plt.savefig('images/10_06.png', dpi=300)
plt.show()


Expand Down
4 changes: 3 additions & 1 deletion code/tests/test_code_in_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ def run_py(path):
f.write('\n'.join(content))

args = ["python", py_path]
subprocess.check_output(args)
p = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print(p.stdout)
print(p.stderr)

os.chdir(orig_dir)

Expand Down

0 comments on commit 1bfb489

Please sign in to comment.