2.1.1
Create new Decision Tree Regression with CART implementation with the given options.
(object)
Name | Description |
---|---|
options.gainFunction string
(default "regression" )
|
gain function to get the best split, "regression" the only one supported. |
options.splitFunction string
(default "mean" )
|
given two integers from a split feature, get the value to split, "mean" the only one supported. |
options.minNumSamples number
(default 3 )
|
minimum number of samples to create a leaf node to decide a class. |
options.maxDepth number
(default Infinity )
|
Max depth of the tree. |
(object)
for load purposes.
Predicts the values given the matrix to predict.
((Matrix | MatrixTransposeView | Array))
Array
:
predictions
Export the current model to JSON.
object
:
Current model.
Train the decision tree with the given training set and values.
Load a Decision tree regression with the given model.
(object)
DecisionTreeRegression
:
Create new Decision Tree Classifier with CART implementation with the given options
(object)
Name | Description |
---|---|
options.gainFunction string
(default "gini" )
|
gain function to get the best split, "gini" the only one supported. |
options.splitFunction string
(default "mean" )
|
given two integers from a split feature, get the value to split, "mean" the only one supported. |
options.minNumSamples number
(default 3 )
|
minimum number of samples to create a leaf node to decide a class. |
options.maxDepth number
(default Infinity )
|
Max depth of the tree. |
(object)
for load purposes.
Predicts the output given the matrix to predict.
((Matrix | MatrixTransposeView | Array))
Array
:
predictions
Export the current model to JSON.
object
:
Current model.
Train the decision tree with the given training set and labels.
Load a Decision tree classifier with the given model.
(object)
DecisionTreeClassifier
: