aggregate(measures = NULL, ids = TRUE, uhashes = FALSE, params = FALSE, conditions = FALSE)
(list of Measure, logical(1)
, logical(1)
, logical(1)
, logical(1)
) -> data.table::data.table()
Returns a result table where resampling iterations are combined into ResampleResults.
A column with the aggregated performance score is added for each Measure, named with the id of the respective measure.
For convenience, the following parameters can be set to extract more information from the returned ResampleResult:
uhashes
:: logical(1)
Adds the uhash values of the ResampleResult as extra character column "uhash"
.
ids
:: logical(1)
Adds object ids ("task_id"
, "learner_id"
, "resampling_id"
) as extra character columns.
params
:: logical(1)
Adds the hyperparameter values as extra list column "params"
.
You can unnest them with mlr3misc::unnest()
.
conditions
:: logical(1)
Adds the number of resampling iterations with at least one warning as extra integer column "warnings"
, and
the number of resampling iterations with errors as extra integer column "errors"
.
score(measures = NULL, ids = TRUE)
(list of Measure, logical(1)
) -> data.table::data.table()
Returns a table with one row for each resampling iteration, including all involved objects:
Task, Learner, Resampling, iteration number (integer(1)
), and Prediction.
If ids
is set to TRUE
, character column of extracted ids are added to the table for convenient filtering: "task_id"
, "learner_id"
, and "resampling_id"
.
Additionally calculates the provided performance measures and binds the performance as extra columns.
These columns are named using the id of the respective Measure.
resample_result(i = NULL, uhash = NULL)
(integer(1)
, character(1)
) -> ResampleResult
Retrieve the i-th ResampleResult, by position or by unique hash uhash
.
i
and uhash
are mutually exclusive.
combine(bmr)
(BenchmarkResult | NULL
) -> self
Fuses a second BenchmarkResult into itself, mutating the BenchmarkResult in-place.
If bmr
is NULL
, simply returns self
.
filter(task_ids = NULL, learner_ids = NULL, resampling_ids = NULL)
(character()
, character()
, character()
) -> self
Subsets the benchmark result.
If task_ids
is not NULL
, keeps all tasks with provided task ids while discards all others.
Same procedure for learner_ids
and resampling_ids
.
help()
() -> NULL
Opens the help page for this object.