Skip to content

Commit

Permalink
improve autotest (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer authored Aug 22, 2024
1 parent 6353926 commit 2f48ac7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/helper_autotest.R
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ expect_learner_torch = function(learner, task, check_man = TRUE, check_id = TRUE
learner1$state = NULL
expect_deep_clone(learner1, learner1$clone(deep = TRUE))
rr = resample(task, learner, rsmp("holdout"))
expect_double(rr$aggregate())
checkmate::expect_class(rr, "ResampleResult")
if (check_id) testthat::expect_true(startsWith(learner$id, learner$task_type))
checkmate::expect_subset(c("loss", "optimizer", "callbacks"), formalArgs(learner$initialize))
Expand Down

0 comments on commit 2f48ac7

Please sign in to comment.