Skip to content

Commit d700e7f

Browse files
authored
Update main_double-dispatch.R
1 parent 71ec380 commit d700e7f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

scripts/main_double-dispatch.R

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ MarkovModel.default <- function(model = NA,
4343
class = c("MarkovModel", "Model"))
4444
}
4545

46-
# A decorator for constructing a MarkovModel from a DecisionTree
47-
MarkovModel.DecisionTree <- function(model, mapping, ...) {
48-
init_probs <- map_terminal_to_markov(model$data$probability, mapping)
49-
NextMethod(generic = MarkovModel,
50-
object = model,
51-
init_probs = init_probs, ...)
52-
}
53-
54-
# (Optional) If you need to convert a Markov model result back to a DecisionTree,
55-
# you could implement DecisionTree.MarkovModel similarly.
56-
DecisionTree.MarkovModel <- function(data, ...) {
57-
NextMethod(generic = DecisionTree,
58-
object = data, ...)
59-
}
60-
6146
###############################
6247
# 2. Define the CombinedModel and infix operator for chaining
6348
###############################

0 commit comments

Comments
 (0)