Skip to content

Instantly share code, notes, and snippets.

@holmesal
Created January 22, 2019 15:31
Show Gist options
  • Save holmesal/65ae74d02f9c89787e8bde814b195b9f to your computer and use it in GitHub Desktop.
Save holmesal/65ae74d02f9c89787e8bde814b195b9f to your computer and use it in GitHub Desktop.
preds, targs = learn.get_preds()
x_val = x[valid_idx];
y_val = np.array(targs);
y_hat = np.array(preds.flatten())
plt.plot(x_val, y_val, 'go', label = 'tagets', alpha = .5)
plt.plot(x_val, y_hat, 'ro', label = 'preds', alpha = .5)
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment