Skip to content

Commit

Permalink
release: 0.13.1 (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed Jan 19, 2022
1 parent abda590 commit 19eddd8
Show file tree
Hide file tree
Showing 58 changed files with 297 additions and 118 deletions.
4 changes: 2 additions & 2 deletions 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.13.0-9000
Version: 0.13.1
Authors@R:
c(person(given = "Michel",
family = "Lang",
Expand Down Expand Up @@ -67,7 +67,7 @@ Imports:
future.apply (>= 1.5.0),
lgr (>= 0.3.4),
mlbench,
mlr3measures (>= 0.4.0),
mlr3measures (>= 0.4.1),
mlr3misc (>= 0.10.0),
parallelly,
palmerpenguins,
Expand Down
12 changes: 11 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# mlr3 0.13.1

* Improved performance for many operations on `ResampleResult` and
`BenchmarkResult`.
* `resample()` and `benchmark()` got a new argument `clone` to control which
objects to clone before performing computations.
* Tasks are checked for infinite values during the conversion from `data.frame`
to `Task` in `as_task_classif()` and `as_task_regr()`. A warning is signaled
if any column contains infinite values.

# mlr3 0.13.0

* Learners which are capable of resuming/continuing (e.g.,
Expand Down Expand Up @@ -87,7 +97,7 @@
respectively. Note that this behavior will eventually will be the default for
future releases.
* Prediction objects generated by `Learner$predict_newdata()` now have row ids
starting from 1 instead auto incrementing row ids of the training task.
starting from 1 instead auto incremented row ids of the training task.
* `as.data.table.DictionaryTasks` now returns an additional column `properties`.
* Added flag `conditions` to `ResampleResult$score()` and
`BenchmarkResult$score()` to allow to work with failing learners more
Expand Down
4 changes: 2 additions & 2 deletions R/BenchmarkResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#'
#' @description
#' This is the result container object returned by [benchmark()].
#' A [BenchmarkResult] consists of the data row-binded data of multiple
#' [ResampleResult]s, which can easily be re-constructed.
#' A [BenchmarkResult] consists of the data of multiple
#' [ResampleResult]s.
#'
#' [BenchmarkResult]s can be visualized via \CRANpkg{mlr3viz}'s `autoplot()` function.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/LearnerClassifFeatureless.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' @include LearnerClassif.R
#'
#' @description
#' A simple [LearnerClassif] which only analyses the labels during train, ignoring all features.
#' A simple [LearnerClassif] which only analyzes the labels during train, ignoring all features.
#' Hyperparameter `method` determines the mode of operation during prediction:
#' \describe{
#' \item{mode:}{Predicts the most frequent label. If there are two or more labels tied, randomly selects one per prediction.}
Expand Down
2 changes: 1 addition & 1 deletion R/LearnerRegrFeatureless.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' @include LearnerRegr.R
#'
#' @description
#' A simple [LearnerRegr] which only analyses the response during train, ignoring all features.
#' A simple [LearnerRegr] which only analyzes the response during train, ignoring all features.
#' If hyperparameter `robust` is `FALSE` (default), constantly predicts `mean(y)` as response
#' and `sd(y)` as standard error.
#' If `robust` is `TRUE`, [median()] and [mad()] are used instead of [mean()] and [sd()],
Expand Down
4 changes: 3 additions & 1 deletion R/worker.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ learner_train = function(learner, task, row_ids = NULL, mode = "train") {
train_time = learner$state$train_time + result$elapsed
}

proto = task$data(rows = integer())
learner$state = insert_named(learner$state, list(
model = result$result,
log = log,
train_time = result$elapsed,
param_vals = learner$param_set$values,
task_hash = task$hash,
data_prototype = task$data(rows = integer()),
data_prototype = proto,
task_prototype = proto, # deprecated, remove for mlr3learners > 0.5.1
mlr3_version = packageVersion("mlr3")
))

Expand Down
4 changes: 2 additions & 2 deletions man/BenchmarkResult.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/mlr_learners_classif.featureless.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/mlr_learners_regr.featureless.Rd

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

7 changes: 6 additions & 1 deletion man/mlr_measures_classif.acc.Rd

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

8 changes: 6 additions & 2 deletions man/mlr_measures_classif.auc.Rd

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

7 changes: 6 additions & 1 deletion man/mlr_measures_classif.bacc.Rd

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

7 changes: 6 additions & 1 deletion man/mlr_measures_classif.bbrier.Rd

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

7 changes: 6 additions & 1 deletion man/mlr_measures_classif.ce.Rd

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

10 changes: 7 additions & 3 deletions man/mlr_measures_classif.dor.Rd

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

17 changes: 8 additions & 9 deletions man/mlr_measures_classif.fbeta.Rd

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

10 changes: 7 additions & 3 deletions man/mlr_measures_classif.fdr.Rd

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

7 changes: 6 additions & 1 deletion man/mlr_measures_classif.fn.Rd

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

10 changes: 7 additions & 3 deletions man/mlr_measures_classif.fnr.Rd

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

10 changes: 7 additions & 3 deletions man/mlr_measures_classif.fomr.Rd

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

7 changes: 6 additions & 1 deletion man/mlr_measures_classif.fp.Rd

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

10 changes: 7 additions & 3 deletions man/mlr_measures_classif.fpr.Rd

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

7 changes: 6 additions & 1 deletion man/mlr_measures_classif.logloss.Rd

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

5 changes: 5 additions & 0 deletions man/mlr_measures_classif.mbrier.Rd

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

Loading

0 comments on commit 19eddd8

Please sign in to comment.