Description Usage Arguments Value
View source: R/tree_traversal_util.R
Find any remaining vars, if missing. Vars can be absent in the forest, if they were never used to split. This function does some bookkeeping, to find elements in the count vector that should be 0. If there weren't enough vars observed, their indeces must be either at the end of vars_used, or the beginning.
1 | lookForVarsAbsentInForest(counts, vars_used, num_ind_vars, forest)
|
counts |
A vector of split counts in the forest. This may need to be updated with 0's for variables that didn't occur in the forest. |
vars_used |
The current list of varID's that have been found in the forest. |
num_ind_vars |
The number of independent vars. Counts must have this many elements. |
forest |
Pass this to access the 'status.varID' if necessary. |
updated counts vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.