performance_metrics: Performace metrics

Description Usage Arguments Value

View source: R/diagnostics.R

Description

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.

Usage

1
performance_metrics(model, df_data = NA, metrics = "absolute_error")

Arguments

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).

Value

a vector with absolute error per period (period 1 is first element).


runtastic/sBGmodel documentation built on Nov. 5, 2019, 4:21 a.m.