Skip to content

Commit

Permalink
fix marshaled field
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Apr 25, 2024
1 parent c7aeab9 commit b031b22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions R/GraphLearner.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#' contain the model. Use `graph_model` to access the trained [`Graph`] after `$train()`. Read-only.
#' * `graph_model` :: [`Learner`][mlr3::Learner]\cr
#' [`Graph`] that is being wrapped. This [`Graph`] contains a trained state after `$train()`. Read-only.
#' * `marshaled` :: `logical(1)`\cr
#' Whether the learner is marshaled.
#'
#' @section Methods:
#' * `marshal(...)`\cr
Expand All @@ -55,8 +57,6 @@
#' * `unmarshal(...)`\cr
#' (any) -> `self`\cr
#' Unmarshal the model.
#' * `marshaled()` -> `logical(1)`\cr
#' Whether the learner is marshaled.
#'
#' @section Internals:
#' [`as_graph()`] is called on the `graph` argument, so it can technically also be a `list` of things, which is
Expand Down Expand Up @@ -150,12 +150,12 @@ GraphLearner = R6Class("GraphLearner", inherit = Learner,
},
unmarshal = function(...) {
learner_unmarshal(.learner = self, ...)
},
marshaled = function() {
learner_marshaled(self)
}
),
active = list(
marshaled = function() {
learner_marshaled(self)
},
hash = function() {
digest(list(class(self), self$id, self$graph$hash, private$.predict_type,
self$fallback$hash, self$parallel_predict), algo = "xxhash64")
Expand Down
4 changes: 2 additions & 2 deletions man/mlr_learners_graph.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b031b22

Please sign in to comment.