Skip to contents

This function records the presence of the features in an object of class randomForest.

Usage

record_randomForest(object)

Arguments

obejct

an object of class randomForest

Value

A list with one element per response, each element being an integer vector of length equivalent to the number of features.

Details

The presence of the features in the randomForest object in input is recorded and returned in a named vector per output response.

If a feature is present in the model (i.e. the feature is used in the random forest) then the feature is returned with a 1. If a feature is missing in the model (i.e. the feature is not used in the random forest) then the feature is returned with a 0.

Author

Alessandro Barberis