Description Usage Arguments Value
performance_metrics
computes performance metrics for sBG model fit. Input data can
either be used from the model (only available when trained on data) or provided as a parameter.
1 | performance_metrics(model, df_data = NA, metrics = "absolute_error")
|
model |
sBG model |
df_data |
data frame that contains per cohort and period the survived customers (must have columns 'cohort', 'period' and 'survived_customers'). |
metrics |
list of performance metrics names you want to get (currently only absolute_error is available). |
a vector with absolute error per period (period 1 is first element).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.