Skip to content

Instantly share code, notes, and snippets.

@andreachello
Created October 6, 2021 04:25
Show Gist options
  • Save andreachello/215bd82e9e3389078fc3e417cc3d2ce7 to your computer and use it in GitHub Desktop.
Save andreachello/215bd82e9e3389078fc3e417cc3d2ce7 to your computer and use it in GitHub Desktop.
plt.figure(figsize=(12,5))
sns.set_context('talk')
sns.set_style('ticks')
sns.set_palette('dark')
ax = plt.axes()
# we are going to use y_test_ohc, y_test_ohc_pred
ax.scatter(y_test_ohc, y_test_ohc_pred, alpha=.5)
ax.set(xlabel='Ground truth',
ylabel='Predictions',
title='Ames, Iowa House Price Predictions vs Truth, using Linear Regression');
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment