We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11aa5ce commit d0331e4Copy full SHA for d0331e4
tests/testthat/test_GraphLearner.R
@@ -573,6 +573,7 @@ test_that("marshal", {
573
task = tsk("iris")
574
glrn = as_learner(as_graph(lrn("classif.debug")))
575
glrn$train(task)
576
+ p1 = glrn$predict(task)
577
glrn$marshal()
578
expect_true(glrn$marshaled)
579
expect_true(is_marshaled_model(glrn$state$model$marshaled$classif.debug))
@@ -581,7 +582,8 @@ test_that("marshal", {
581
582
expect_class(glrn$model, "graph_learner_model")
583
expect_false(is_marshaled_model(glrn$state$model$marshaled$classif.debug$model))
584
- glrn$predict(task)
585
+ p2 = glrn$predict(task)
586
+ expect_equal(p1$response, p2$response)
587
588
# checks that it is marshalable
589
0 commit comments