Skip to content

Commit

Permalink
Merge branch 'main' into fix/as-measures
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer authored Jan 8, 2025
2 parents b1e4af3 + e21782a commit edd063e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/BenchmarkResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ BenchmarkResult = R6Class("BenchmarkResult",
#'
#' @return [data.table::data.table()].
aggregate = function(measures = NULL, ids = TRUE, uhashes = FALSE, params = FALSE, conditions = FALSE) {
measures = assert_measures(as_measures(measures, task_type = self$task_type))
measures = if (is.null(measures)) {
default_measures(self$task_type)
} else {
assert_measures(as_measures(measures))
}
assert_flag(ids)
assert_flag(uhashes)
assert_flag(params)
Expand Down

0 comments on commit edd063e

Please sign in to comment.