Skip to content

Commit

Permalink
marshal change
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Feb 22, 2024
1 parent 89a91a1 commit 6944e10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ Remotes:
mlr-org/mlr3@bundle
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3.9000
RoxygenNote: 7.3.1
10 changes: 5 additions & 5 deletions tests/testthat/test_batchmark.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ test_that("failing jobs", {
expect_error(reduceResultsBatchmark(reg = reg, ids = ids), "successfully computed")
})

test_that("marshalling", {
test_that("marshaling", {
reg = batchtools::makeExperimentRegistry(NA)
batchmark(benchmark_grid(tsk("iris"), lrn("classif.lily"), rsmp("holdout")), store_models = TRUE)
submitJobs()
bmr_unmarshalled = reduceResultsBatchmark(unmarshal = TRUE)
bmr_marshalled = reduceResultsBatchmark(unmarshal = FALSE)
bmr_unmarshaled = reduceResultsBatchmark(unmarshal = TRUE)
bmr_marshaled = reduceResultsBatchmark(unmarshal = FALSE)

expect_true(bmr_marshalled$resample_result(1)$learners[[1]]$marshalled)
expect_false(bmr_unmarshalled$resample_result(1)$learners[[1]]$marshalled)
expect_true(bmr_marshaled$resample_result(1)$learners[[1]]$marshaled)
expect_false(bmr_unmarshaled$resample_result(1)$learners[[1]]$marshaled)
})

0 comments on commit 6944e10

Please sign in to comment.