Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 26, 2021 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/2685ae1f4a3ae7724d2f244b0d8baa90 to your computer and use it in GitHub Desktop.
Save amankharwal/2685ae1f4a3ae7724d2f244b0d8baa90 to your computer and use it in GitHub Desktop.
predictions = gbr.predict(xTest)
plt.scatter(yTest, predictions)
plt.style.use('seaborn-whitegrid')
plt.xlabel('true values')
plt.ylabel('predicted values')
plt.title('GradientRegressor')
plt.plot(np.arange(0,0.4, 0.01), np.arange(0, 0.4, 0.01), color = 'green')
plt.grid(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment