Measures the elapsed time during train ("time_train"), predict ("time_predict"), or both ("time_both").

Format

R6::R6Class() inheriting from Measure.

Construction

MeasureElapsedTime$new(id, stages)

mlr_measures$get("time_train")
mlr_measures$get("time_predict")
mlr_measures$get("time_both")

msr$get("time_train")
msr$get("time_predict")
msr$get("time_both")
  • id :: character(1)
    Id for the created measure.

  • stages :: character()
    Subset of ("train", "predict"). The runtime of all stages will be summed.

See also

Dictionary of Measures: mlr_measures

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