Learn R Programming

mlr3 (version 0.1.6)

mlr_measures_selected_features: Selected Features Measure

Description

Measures the number of selected features by extracting it from learners with property "selected_features". If the learner does not support this, NA is returned.

This measure requires the Task and the Learner for scoring.

Arguments

Format

R6::R6Class() inheriting from Measure.

Construction

MeasureSelectedFeatures$new(normalize = FALSE)
mlr_measures$get("selected_features")
msr("selected_features")
  • normalize :: logical(1) If normalize is set to TRUE, divides the number of features by the total number of features.

Meta Information

  • Type: NA

  • Range: \([0, \infty)\)

  • Minimize: TRUE

  • Required prediction: 'response'

See Also

Dictionary of Measures: mlr_measures

as.data.table(mlr_measures) for a complete table of all (also dynamically created) Measure implementations.