getFeatureImportanceLearner: Calculates feature importance values for a given learner.

Description Usage Arguments Value

View source: R/getFeatureImportance.R

Description

This function is mostly for internal usage. To calculate feature importance use getFeatureImportance.

The return value is a named numeric vector. There does not need to be one value for each feature in the dataset. In getFeatureImportance missing features will get an importance of zero and if the vector contains NA they will also be replaced with zero.

Usage

1
2
3
4
5
## S3 method for class 'regr.randomForestSRC'
getFeatureImportanceLearner(.learner, .model,
  ...)

getFeatureImportanceLearner(.learner, .model, ...)

Arguments

.learner

[Learner | character(1)]
The learner.

.model

[WrappedModel]
The model.

...

[any]
Additional parameters, which are passed to the underlying importance value generating function.

Value

[numeric] A named vector of variable importance.


guillermozbta/s2 documentation built on May 17, 2019, 4:01 p.m.