Skip to content

Commit

Permalink
chore: add source to one standard error callback
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Dec 15, 2023
1 parent 76451ec commit 7371f8d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
14 changes: 14 additions & 0 deletions R/bibentries.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,19 @@ bibentries = c(
journal = "Machine Learning",
author = "Isabelle Guyon and Jason Weston and Stephen Barnhill and Vladimir Vapnik",
year = "2002"
),

kuhn2013 = bibentry("Inbook",
author = "Kuhn, Max and Johnson, Kjell",
chapter = "Over-Fitting and Model Tuning",
title = "Applied Predictive Modeling",
year = "2013",
publisher = "Springer New York",
address = "New York, NY",
pages = "61--92",
isbn = "978-1-4614-6849-3",
doi = "10.1007/978-1-4614-6849-3_4",
url = "https://doi.org/10.1007/978-1-4614-6849-3_4"
)
)

3 changes: 3 additions & 0 deletions R/mlr_callbacks.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ load_callback_svm_rfe = function() {
#' @description
#' Selects the smallest feature set within one standard error of the best as the result.
#'
#' @source
#' `r format_bib("kuhn2013")`
#'
#' @examples
#' clbk("mlr3fselect.one_se_rule")
#'
Expand Down
7 changes: 7 additions & 0 deletions man/mlr3fselect.one_se_rule.Rd

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

4 changes: 2 additions & 2 deletions tests/testthat/test_FSelectInstanceSingleCrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ test_that("always include variable works", {
task = task,
learner = learner,
resampling = resampling,
measure = msr("classif.ce"),
measures = msr("classif.ce"),
terminator = trm("evals", n_evals = 100),
store_models = TRUE
)
Expand All @@ -105,7 +105,7 @@ test_that("always include variables works", {
task = task,
learner = learner,
resampling = resampling,
measure = msr("classif.ce"),
measures = msr("classif.ce"),
terminator = trm("evals", n_evals = 100),
store_models = TRUE
)
Expand Down

0 comments on commit 7371f8d

Please sign in to comment.