Skip to main content

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 only Classification for categorical responses is supported. Default: 'Classification'.
  • quantitative | array<string> (required): array of variables in data that are quantitative. 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 or entropy). 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
Last updated on by Planeshifter