Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Apr 10, 2024
1 parent 11aa5ce commit d0331e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test_GraphLearner.R
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ test_that("marshal", {
task = tsk("iris")
glrn = as_learner(as_graph(lrn("classif.debug")))
glrn$train(task)
p1 = glrn$predict(task)
glrn$marshal()
expect_true(glrn$marshaled)
expect_true(is_marshaled_model(glrn$state$model$marshaled$classif.debug))
Expand All @@ -581,7 +582,8 @@ test_that("marshal", {
expect_class(glrn$model, "graph_learner_model")
expect_false(is_marshaled_model(glrn$state$model$marshaled$classif.debug$model))

glrn$predict(task)
p2 = glrn$predict(task)
expect_equal(p1$response, p2$response)

# checks that it is marshalable
glrn$train(task)
Expand Down

0 comments on commit d0331e4

Please sign in to comment.