Skip to content

Instantly share code, notes, and snippets.

@ogyalcin
Created June 24, 2021 08:51
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 ogyalcin/4d10e3ef6f67b170c63cca816dd1f8ee to your computer and use it in GitHub Desktop.
Save ogyalcin/4d10e3ef6f67b170c63cca816dd1f8ee to your computer and use it in GitHub Desktop.
# Calculate RMSE
# Note that we did not split train and test datasets to simplify the process
rf_preds = rf.predict(X)
rf_rmse = np.sqrt(((rf_preds - y) ** 2).mean())
print(rf_rmse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment