mlr3 (version 0.1.4)

MeasureDebug: Debug Measure

Description

This measure returns the number of observations in the Prediction object. Its main purpose is debugging.

Arguments

Format

R6::R6Class() inheriting from Measure.

Construction

MeasureDebug$new(na_ratio = 0)
mlr_measures$get("debug")
msr("debug")
  • na_ratio :: numeric(1) Ratio of scores which should be NA. Default is 0.

Fields

  • na_ratio :: numeric(1).

See Also

Dictionary of Measures: mlr_measures

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

Examples

Run this code
# NOT RUN {
task = tsk("wine")
learner = lrn("classif.featureless", predict_sets = "test")
measure = msr("debug")
rr = resample(task, learner, rsmp("cv", folds = 3))
rr$score(measure)
# }

Run the code above in your browser using DataLab