Skip to content

Commit

Permalink
release: 0.22.0 (#1204)
Browse files Browse the repository at this point in the history
* release: 0.22.0

* ...

* ...

* ...
  • Loading branch information
be-marc authored Nov 25, 2024
1 parent 4b1f072 commit 4f1762f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: mlr3
Title: Machine Learning in R - Next Generation
Version: 0.21.1.9000
Version: 0.22.0
Authors@R:
c(
person("Michel", "Lang", , "[email protected]", role = "aut",
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# mlr3 (development version)
# mlr3 0.22.0

* fix: Quantiles must not ascend with probabilities.
* refactor: Replace `tsk("boston_housing")` with `tsk("california_housing")`.
* feat: Require unique learner ids in `benchmark_grid()`.
* BREAKING CHANGE: Remove ``$loglik()`` method from all learners.
* fix: Ignore `future.globals.maxSize` when `future::plan("sequential")` is used.
* feat: Add `$characteristics` field to `Task` to store additional information.
Expand Down
2 changes: 1 addition & 1 deletion R/BenchmarkResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ as.data.table.BenchmarkResult = function(x, ..., hashes = FALSE, predict_sets =
tab = tab[, c("uhash", "task", "learner", "resampling", "iteration", "prediction"), with = FALSE]

if (task_characteristics) {
tab[, characteristics := map(task, "characteristics")]
set(tab, j = "characteristics", value = map(tab$task, "characteristics"))
tab = unnest(tab, "characteristics")
}

Expand Down
6 changes: 3 additions & 3 deletions man/Task.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions tests/testthat/test_Task.R
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,9 @@ test_that("$characteristics works", {
resampling = rsmp("cv", folds = 3)

design = benchmark_grid(
task = list(tsk_1, tsk_2),
learner = learner,
resampling = resampling
tasks = list(tsk_1, tsk_2),
learners = learner,
resamplings = resampling
)

bmr = benchmark(design)
Expand All @@ -703,9 +703,9 @@ test_that("$characteristics works", {
tsk_2$characteristics = list(n = 200, f = 2)

design = benchmark_grid(
task = list(tsk_1, tsk_2),
learner = learner,
resampling = resampling
tasks = list(tsk_1, tsk_2),
learners = learner,
resamplings = resampling
)

bmr = benchmark(design)
Expand All @@ -718,9 +718,9 @@ test_that("$characteristics works", {
tsk_2$characteristics = list(n = 200)

design = benchmark_grid(
task = list(tsk_1, tsk_2),
learner = learner,
resampling = resampling
tasks = list(tsk_1, tsk_2),
learners = learner,
resamplings = resampling
)

bmr = benchmark(design)
Expand Down

0 comments on commit 4f1762f

Please sign in to comment.