Skip to content

Commit

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

* ...

* ...

* ...

* ...
  • Loading branch information
be-marc authored Dec 18, 2024
1 parent 4188ff3 commit 1742b46
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 21 deletions.
8 changes: 3 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: mlr3tuning
Title: Hyperparameter Optimization for 'mlr3'
Version: 1.2.1.9000
Version: 1.3.0
Authors@R: c(
person("Marc", "Becker", , "[email protected]", role = c("cre", "aut"),
comment = c(ORCID = "0000-0002-8115-0400")),
Expand Down Expand Up @@ -29,7 +29,7 @@ Depends:
paradox (>= 1.0.1),
R (>= 3.1.0)
Imports:
bbotk (>= 1.4.1),
bbotk (>= 1.5.0),
checkmate (>= 2.0.0),
data.table,
lgr,
Expand All @@ -39,7 +39,7 @@ Suggests:
adagio,
future,
GenSA,
irace (>= 4.0.0),
irace (>= 4.1.0),
knitr,
mlflow,
mlr3learners (>= 0.7.0),
Expand All @@ -50,8 +50,6 @@ Suggests:
rpart,
testthat (>= 3.0.0),
xgboost
Remotes:
mlr-org/bbotk
VignetteBuilder:
knitr
Config/testthat/edition: 3
Expand Down
5 changes: 3 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# mlr3tuning (development version)
# mlr3tuning 1.3.0

perf: save models on worker only when requested in `ObjectiveTuningAsync`.
* feat: Save `ArchiveAsyncTuning` to a `data.table` with `ArchiveAsyncTuningFrozen`.
* perf: Save models on worker only when requested in `ObjectiveTuningAsync`.

# mlr3tuning 1.2.1

Expand Down
2 changes: 1 addition & 1 deletion R/ArchiveAsyncTuningFrozen.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#'
#' @section S3 Methods:
#' * `as.data.table(archive)`\cr
#' [ArchiveAsync] -> [data.table::data.table()]\cr
#' [ArchiveAsyncTuningFrozen] -> [data.table::data.table()]\cr
#' Returns a tabular view of all performed function calls of the Objective.
#' The `x_domain` column is unnested to separate columns.
#'
Expand Down
4 changes: 2 additions & 2 deletions R/TunerBatchIrace.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
#' # load learner and set search space
#' learner = lrn("classif.rpart", cp = to_tune(1e-04, 1e-1, logscale = TRUE))
#'
#' # currently there is bug in irace 4.0.0 that sometimes let the example crash
#' \dontrun{
#' # runtime of the example is too long
#' \donttest{
#' # hyperparameter tuning on the pima indians diabetes data set
#' instance = tune(
#' tuner = tnr("irace"),
Expand Down
2 changes: 1 addition & 1 deletion R/mlr_callbacks.R
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ load_callback_one_se_rule = function() {
#' @name mlr3tuning.async_freeze_archive
#'
#' @description
#' This [CallbackAsync] freezes the [ArchiveAsync] to [ArchiveAsyncFrozen] after the optimization has finished.
#' This [CallbackAsyncTuning] freezes the [ArchiveAsyncTuning] to [ArchiveAsyncTuningFrozen] after the optimization has finished.
#'
#' @examples
#' clbk("mlr3tuning.async_freeze_archive")
Expand Down
2 changes: 1 addition & 1 deletion man/ArchiveAsyncTuningFrozen.Rd

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

2 changes: 1 addition & 1 deletion man/mlr3tuning.async_freeze_archive.Rd

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

4 changes: 2 additions & 2 deletions man/mlr_tuners_irace.Rd

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

7 changes: 1 addition & 6 deletions tests/testthat/test_TunerBatchIrace.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
skip_if_not_installed("irace")

test_that("TunerIrace", {
skip_if(TRUE) # Remove this line when irace is fixed
z = test_tuner("irace", term_evals = 42)
instance = z$inst
archive = instance$archive$data
Expand All @@ -23,7 +22,6 @@ test_that("TunerIrace", {
})

test_that("TunerIrace works with dependencies", {
skip_if(TRUE) # Remove this line when irace is fixed
search_space = ps(
cp = p_dbl(lower = 0.001, upper = 0.1),
minsplit = p_int(lower = 1, upper = 10, depends = cp == 0.005)
Expand All @@ -44,7 +42,6 @@ test_that("TunerIrace works with dependencies", {
})

test_that("TunerIrace works with logical parameters", {
skip_if(TRUE) # Remove this line when irace is fixed
search_space = ps(
cp = p_dbl(lower = 0.001, upper = 0.1),
keep_model = p_lgl())
Expand All @@ -61,9 +58,8 @@ test_that("TunerIrace works with logical parameters", {
})

test_that("TunerIrace uses digits", {
skip_if(TRUE) # Remove this line when irace is fixed
search_space = ps(cp = p_dbl(lower = pi * 1e-20, upper = 5.242e12 / 1e13))
instance = ti(
instance = ti(
task = tsk("mtcars"),
learner = lrn("regr.rpart"),
resampling = rsmp("holdout"),
Expand All @@ -75,7 +71,6 @@ test_that("TunerIrace uses digits", {
})

test_that("TunerIrace works with unnamed discrete values", {
skip_if(TRUE) # Remove this line when irace is fixed
# we had a bug here, see (mlr) issue #627
search_space = ps(minsplit = p_int(lower = 2L, upper = 7L))
instance = ti(
Expand Down

0 comments on commit 1742b46

Please sign in to comment.