Skip to content

Instantly share code, notes, and snippets.

@meraldo-aliz
Created March 2, 2022 05:46
Show Gist options
  • Save meraldo-aliz/41b769936f921419c1d6aa773282b9bf to your computer and use it in GitHub Desktop.
Save meraldo-aliz/41b769936f921419c1d6aa773282b9bf to your computer and use it in GitHub Desktop.
lifetimes
from sklearn.metrics import mean_squared_error
RMSE = mean_squared_error(y_true = rfm_cal_holdout["n_transactions_holdout_real"],
y_pred = rfm_cal_holdout["n_transactions_holdout_pred"],
squared = False)
RMSE # = 1.3536793286521
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment