ModelDecomposition.Rd
The class takes an object containing a prediction model and decomposes it into its essential parts.
model_object
(?
) A model object to decompose.
data
(data.frame
) A data table with the data used to
create model_object
.
role_target
(character
) The name of the target variable in
model_object
.
role_input
(character
) The name of the target variable
model_object
.
set_data()
Substitute the default data with a different dataset. This is useful when you have a model which was fitted on a train set, but you want to explain the test set.
ModelDecomposition$set_data(data)
data
(data.frame
) A data table with columns that correspond
to variables used in the model.
predict_function()
Predict method for object
.
ModelDecomposition$predict_function(object, newdata = NULL)
object
(?
) A model object to decompose.
newdata
(data.frame
)` A data table in which to look for
variables with which to predict.
new()
Decompose a given object to its essential parts.
ModelDecomposition$new(object)
object
(?
) A model object to decompose.