Skip to content

Commit

Permalink
mlr3inference -> mlr3inferr
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Jul 22, 2024
1 parent 4af0e8a commit ee89458
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Suggests:
mlr3cluster,
mlr3filters,
mlr3fselect (>= 1.0.0),
mlr3inference,
mlr3inferr,
mlr3learners,
mlr3tuning (>= 1.0.0),
paradox,
Expand All @@ -66,7 +66,7 @@ Suggests:
mlr3proba (>= 0.6.3)
Remotes:
mlr-org/mlr3proba,
mlr-org/mlr3inference
mlr-org/mlr3inferr
Additional_repositories:
https://mlr-org.r-universe.dev
Config/testthat/edition: 3
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# mlr3viz (development version)

- Add plot for `LearnerSurvCoxPH`.
- Add plot for confidence intervals (`mlr3inference`)
- Add plot for confidence intervals (`mlr3inferr`)

# mlr3viz 0.9.0

Expand Down
4 changes: 2 additions & 2 deletions R/BenchmarkResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' Requires package \CRANpkg{precrec}.
#' * `"prc"`: Precision recall curve.
#' See `"roc"`.
#' * `"ci"`: Plot confidence intervals. Pass a `msr("ci", ...)` from the `mlr3inference` package as argument `measure`.
#' * `"ci"`: Plot confidence intervals. Pass a `msr("ci", ...)` from the `mlr3inferr` package as argument `measure`.
#'
#' @param object ([mlr3::BenchmarkResult]).
#' @template param_type
Expand Down Expand Up @@ -48,7 +48,7 @@ autoplot.BenchmarkResult = function(object, type = "boxplot", measure = NULL, th
measure = mlr3::assert_measure(mlr3::as_measure(measure, task_type = task$task_type), task = task)

if (identical(type, "ci")) {
mlr3misc::require_namespaces("mlr3inference")
mlr3misc::require_namespaces("mlr3inferr")

assert_class(measure, "MeasureAbstractCi")
mid = measure$id
Expand Down
2 changes: 1 addition & 1 deletion man/autoplot.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 tests/testthat/test_BenchmarkResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test_that("holdout roc plot (#54)", {
expect_doppelganger("bmr_holdout_roc", p)
})

skip_if_not_installed("mlr3inference")
skip_if_not_installed("mlr3inferr")
skip_if_not_installed("rpart")

test_that("CI plot", {
Expand Down

0 comments on commit ee89458

Please sign in to comment.