Skip to content

Commit 6da8bdf

Browse files
authored
Update old hybrid comment (#154)
Update hybrid_policy_tree.R
1 parent 13388c5 commit 6da8bdf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

r-package/policytree/R/hybrid_policy_tree.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,8 @@ unpack_tree <- function(tree) {
177177
nodes
178178
}
179179

180-
# Convert an adjacency list to array for predictions.
181-
# see Rcppbindigs.cpp for details.
182-
# Future TODO: consider performing this here instead of in Rcppbindigs.
183-
# For "largish" depth it could also be sparse.
180+
# Convert an adjacency list to array for predictions (see Rcppbindigs.cpp for details).
181+
# The 5th column is just the node label according to the print() order a hybrid tree has.
184182
tree_mat <- function(nodes, depth) {
185183
num.nodes <- 2^(depth + 1) - 1
186184
tree.array <- matrix(0, num.nodes, 5)

0 commit comments

Comments
 (0)