new GradientBoostedTreesModel(algo, trees, treeWeights) → (nullable) {?}
Parameters:
Name | Type | Description |
---|---|---|
algo |
Algo | |
trees |
Array.<module:eclairjs/mllib/tree/model.DecisionTreeModel> | |
treeWeights |
Array.<number> |
Returns:
- Type
- ?
Methods
(static) load(sc, path) → {module:eclairjs/mllib/tree/model.GradientBoostedTreesModel}
Parameters:
Name | Type | Description |
---|---|---|
sc |
module:eclairjs.SparkContext | Spark context used for loading model files. |
path |
string | Path specifying the directory to which the model was saved. |
Returns:
Model instance
evaluateEachIteration(data, loss) → {Array.<number>}
Method to compute error or loss for every iteration of gradient boosting.
Parameters:
Name | Type | Description |
---|---|---|
data |
module:eclairjs.RDD | RDD of LabeledPoint |
loss |
module:eclairjs/mllib/tree/loss.Loss | evaluation metric. containing the first i+1 trees |
Returns:
an array with index i having the losses or errors for the ensemble
- Type
- Array.<number>
save(sc, path)
Parameters:
Name | Type | Description |
---|---|---|
sc |
module:eclairjs.SparkContext | Spark context used to save model data. |
path |
string | Path specifying the directory in which to save this model. If the directory already exists, this method throws an exception. |
toDebugString() → {string}
Print the full model to a string.
Returns:
- Type
- string
toString() → {string}
Print a summary of the model.
Returns:
- Type
- string