Description Usage Arguments Format Details Value Fields Methods Author(s) Examples
Test is a class of R6. It is the candicate split of a node. Named by Amir Saffari 's paper.
1 |
xvar.index |
A integer indicates which x variable is used to split. |
xvar.value |
A numeric indicates what value of the chosen x variable is used to split. Means: |
numClasses |
A nonnegative integer indicates how many classes when solve a classifation problem. Default 0 for regression. If numClasses > 0, then do classifation. |
R6Class
object.
Note that Test may only be seen in leaf nodes of an ORT tree. See details in description of each field or method.
Object of R6Class
, Object of Candidate Split
.
statsL
A SuffStats object in left hand of a split.
statsR
A SuffStats object in right hand of a split.
update(x, y)
When a sample comes in current node, update ORT with the sample's x variables and y value.
x - The x variables of a sample. Note it is an numeric vector other than a scalar.
y - The y value of a sample.
Quan Gu
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.