Learn R Programming

forestFloor (version 1.11.1)

importanceExportWrapper: Importance Export Wrapper (internal)

Description

wrapping randomForest::importance and check if one and only one importance is exported

Usage

importanceExportWrapper(rf, type = NULL, class = NULL, scale = NULL)

Arguments

rf

object of class randomForest

type

type of importance, 1 permutation based, 2 loss function based (gini/least squares)

class

character of factor level to get class specific importance, only for type 1 importance for classification random forest

scale

TRUE FALSE or NULL, passed to randomForest::importance

Value

vector of importance for each feature

Details

internal wrapper to get importance

See Also

importance

Examples

Run this code
#no examples only for internal use

Run the code above in your browser using DataLab