Organises the model outputs, predictions and settings in a general structure

tree_abstract(model, inputdata)

Arguments

model

The model to organise

inputdata

The data used to train the model

Value

A structure with the class name "tree_model" which contains a list of all the relevant model data, including the rpart model object, hyper-parameters, segment table, labelled customer lookup table, and the input data used to train the model.