Class: GradientBoostedTreesModel

eclairjs/mllib/tree/model. GradientBoostedTreesModel

new GradientBoostedTreesModel(algo, trees, treeWeights) → (nullable) {?}

Parameters:
Name Type Description
algo Algo
trees Array.<module:eclairjs/mllib/tree/model.DecisionTreeModel>
treeWeights Array.<number>
Source:
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.
Source:
Returns:
Model instance
Type
module:eclairjs/mllib/tree/model.GradientBoostedTreesModel

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
Source:
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.
Source:

toDebugString() → {string}

Print the full model to a string.
Source:
Returns:
Type
string

toString() → {string}

Print a summary of the model.
Source:
Returns:
Type
string