Skip to content

Commit b031b22

Browse files
committed
fix marshaled field
1 parent c7aeab9 commit b031b22

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

R/GraphLearner.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
#' contain the model. Use `graph_model` to access the trained [`Graph`] after `$train()`. Read-only.
4848
#' * `graph_model` :: [`Learner`][mlr3::Learner]\cr
4949
#' [`Graph`] that is being wrapped. This [`Graph`] contains a trained state after `$train()`. Read-only.
50+
#' * `marshaled` :: `logical(1)`\cr
51+
#' Whether the learner is marshaled.
5052
#'
5153
#' @section Methods:
5254
#' * `marshal(...)`\cr
@@ -55,8 +57,6 @@
5557
#' * `unmarshal(...)`\cr
5658
#' (any) -> `self`\cr
5759
#' Unmarshal the model.
58-
#' * `marshaled()` -> `logical(1)`\cr
59-
#' Whether the learner is marshaled.
6060
#'
6161
#' @section Internals:
6262
#' [`as_graph()`] is called on the `graph` argument, so it can technically also be a `list` of things, which is
@@ -150,12 +150,12 @@ GraphLearner = R6Class("GraphLearner", inherit = Learner,
150150
},
151151
unmarshal = function(...) {
152152
learner_unmarshal(.learner = self, ...)
153-
},
154-
marshaled = function() {
155-
learner_marshaled(self)
156153
}
157154
),
158155
active = list(
156+
marshaled = function() {
157+
learner_marshaled(self)
158+
},
159159
hash = function() {
160160
digest(list(class(self), self$id, self$graph$hash, private$.predict_type,
161161
self$fallback$hash, self$parallel_predict), algo = "xxhash64")

man/mlr_learners_graph.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)