Random Forest
Random Forests.
Options
- data |
object (required)
: object of value arrays. Default:none
. - y |
(string|Factor) (required)
: outcome variable. Default:none
. - x |
(array<(string|Factor)>|string|Factor) (required)
: one or more predictor variables. Default:none
. - type |
string
: currently onlyClassification
for categorical responses is supported. Default:'Classification'
. - quantitative |
array<string> (required)
: array of variables indata
that arequantitative
. Default:none
. - nTrees |
number
: number of trees. Default:50
. - nTry |
number
: number of predictors to check at each split. Default:1
. - impurityMeasure |
string
: impurity measure (gini
orentropy
). Default:'gini'
. - scoreThreshold |
number
: score threshold for split. Default:0.01
. - maxTreeDepth |
number
: maximum tree depth. Default:20
. - minItemsCount |
number
: minimum # of observations in leaf nodes. Default:50
. - onPredict |
function
: callback invoked with model object when clicking on the predict button. Default:none
.
Examples
Live Editor
Result
ReferenceError: Provider is not defined