Skip to content

Commit 2e12c95

Browse files
committed
...
1 parent e4871c4 commit 2e12c95

File tree

5 files changed

+2
-22
lines changed

5 files changed

+2
-22
lines changed

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ S3method(as_pipeop,Filter)
1111
S3method(as_pipeop,Learner)
1212
S3method(as_pipeop,PipeOp)
1313
S3method(as_pipeop,default)
14-
S3method(assert_internal_tuning,GraphLearner)
1514
S3method(marshal_model,Multiplicity)
1615
S3method(marshal_model,graph_learner_model)
1716
S3method(marshal_model,pipeop_impute_learner_state)

R/GraphLearner.R

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -424,18 +424,6 @@ set_validate.GraphLearner = function(learner, validate, ids = NULL, args = list(
424424
invisible(learner)
425425
}
426426

427-
428-
#' @export
429-
assert_internal_tuning.GraphLearner = function(learner, ids, ...) {
430-
if (length(ids)) {
431-
walk(learner_wrapping_pipeops(learner), function(po) {
432-
assert_internal_tuning(po$learner, ids = po$param_set$ids()[sprintf("%s.%s", po$id, po$param_set$ids()) %in% ids])
433-
})
434-
}
435-
invisible(learner)
436-
}
437-
438-
439427
#' @export
440428
marshal_model.graph_learner_model = function(model, inplace = FALSE, ...) {
441429
xm = map(.x = model, .f = marshal_model, inplace = inplace, ...)

man/mlr_learners_avg.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mlr_pipeops_tunethreshold.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test_GraphLearner.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,6 @@ test_that("internal_tuned_values", {
625625
expect_equal(names(glrn2$internal_tuned_values), "classif.debug.iter")
626626
})
627627

628-
test_that("assert_internal_tuning", {
629-
glrn = as_learner(as_pipeop(lrn("classif.debug", iter = 100, early_stopping = TRUE, validate = 0.2)))
630-
expect_learner(assert_internal_tuning(glrn, "classif.debug.iter"))
631-
glrn$param_set$set_values(classif.debug.early_stopping = FALSE)
632-
expect_error(assert_internal_tuning(glrn, "classif.debug.iter"))
633-
})
634-
635628
test_that("set_validate", {
636629
glrn = as_learner(as_pipeop(lrn("classif.debug", validate = 0.3)))
637630
set_validate(glrn, "test")

0 commit comments

Comments
 (0)