diff --git a/DESCRIPTION b/DESCRIPTION index 88cc8e863..8edf6e13d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: mlr3 Title: Machine Learning in R - Next Generation -Version: 1.0.0.9000 +Version: 1.0.1 Authors@R: c( person("Michel", "Lang", , "michellang@gmail.com", role = "aut", @@ -50,13 +50,13 @@ Imports: checkmate (>= 2.0.0), cli, data.table (>= 1.15.0), - evaluate, + evaluate (>= 1.0.4), future, future.apply (>= 1.5.0), lgr (>= 0.3.4), mlbench, mlr3measures (>= 1.0.0), - mlr3misc (>= 0.17.0), + mlr3misc (>= 0.18.0), parallelly, palmerpenguins, paradox (>= 1.0.1), diff --git a/NEWS.md b/NEWS.md index 9743b7571..38daeba74 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,8 @@ -# mlr3 (development version) +# mlr3 1.0.1 + +* fix: The printer of `Learner` failed when the `validate` field was set. +* fix: Avoid printing empty line for feature less tasks. +* perf: Use `data.table::setattr()` for less copying. # mlr3 1.0.0 diff --git a/R/TaskRegr_california_housing.R b/R/TaskRegr_california_housing.R index 9a8df77e1..24caa0319 100644 --- a/R/TaskRegr_california_housing.R +++ b/R/TaskRegr_california_housing.R @@ -19,7 +19,7 @@ #' @section Meta Information: #' `r rd_info(tsk("california_housing"))` #' -#' @source \url{https://www.kaggle.com/datasets/camnugent/california-housing-prices} +#' @source https://www.kaggle.com/datasets/camnugent/california-housing-prices #' #' @template seealso_task NULL diff --git a/README.md b/README.md index 46347465e..7776d68f5 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,7 @@ Status](https://www.r-pkg.org/badges/version-ago/mlr3)](https://cran.r-project.o [gallery](https://mlr-org.com/gallery.html) with case studies. - [Reference manual](https://mlr3.mlr-org.com/reference/) - [FAQ](https://mlr-org.com/faq.html) -- Ask questions on [Stackoverflow (tag - \#mlr3)](https://stackoverflow.com/questions/tagged/mlr3) +- Ask questions on Stackoverflow (tag mlr3) - **Extension Learners** - Recommended core regression, classification, and survival learners are in [mlr3learners](https://github.com/mlr-org/mlr3learners) @@ -99,7 +98,7 @@ task_penguins = as_task_classif(species ~ ., data = palmerpenguins::penguins) task_penguins ``` - ## + ## ## ── (344x8) ─────────────────────────────────────────────────────── ## • Target: species ## • Target classes: Adelie (44%), Gentoo (36%), Chinstrap (20%) @@ -141,7 +140,7 @@ measure = msr("classif.acc") prediction$score(measure) ``` - ## classif.acc + ## classif.acc ## 0.9651163 ### Resample @@ -166,7 +165,7 @@ rr$score(measure)[, .(task_id, learner_id, iteration, classif.acc)] rr$aggregate(measure) ``` - ## classif.acc + ## classif.acc ## 0.9361302 ## Extension Packages diff --git a/man/california_housing.Rd b/man/california_housing.Rd index c6ffaaddb..47ede640c 100644 --- a/man/california_housing.Rd +++ b/man/california_housing.Rd @@ -8,7 +8,7 @@ \link[R6:R6Class]{R6::R6Class} inheriting from \link{TaskRegr}. } \source{ -\url{https://www.kaggle.com/datasets/camnugent/california-housing-prices} +https://www.kaggle.com/datasets/camnugent/california-housing-prices } \description{ A regression task to predict the median house value in California. diff --git a/tests/testthat/test_Task.R b/tests/testthat/test_Task.R index 2f7e616d7..5faa99d03 100644 --- a/tests/testthat/test_Task.R +++ b/tests/testthat/test_Task.R @@ -769,7 +769,9 @@ test_that("rbind with weights", { new_data$w_lrn = 1001:1010 new_data$w_msr = 2010:2001 new_data$Petal.Length = new_data$Petal.Length + 100 # Change a feature to check backend update - new_data$Species = factor(sample(c("setosa", "versicolor", "virginica", "new_level"), 10, replace = TRUE)) # new factor level + new_species = sample(c("setosa", "versicolor", "virginica", "new_level"), 10, replace = TRUE) # new factor level + new_species[1] = "new_level" # include new level at least once + new_data$Species = factor(new_species) task$rbind(new_data)