Prediction component for expected profit models (EPMs). This function is called in
model_prediction
, which is called within run_policy
.
Usage
epm_predict(
project,
mod.name,
mod.type,
use.scalers = FALSE,
scaler.func = NULL,
outsample = FALSE,
outsample.mod.name = NULL
)
Arguments
- project
Name of project
- mod.name
Name of saved model to use
- mod.type
String. Options are weibull, lognormal, normal
- use.scalers
Input for
create_model_input
. Logical, should data be normalized? Defaults toFALSE
. Rescaling factors are the mean of the numeric vector unless specified withscaler.func
.- scaler.func
Input for
create_model_input
. Function to calculate rescaling factors.- outsample
Logical,
FALSE
if predicting probabilities for main data, andTRUE
if predicting for out-of-sample data.outsample = FALSE
is the default setting.