public class GradientBoostedTreesModel extends TreeEnsembleModel implements Saveable
Constructor and Description |
---|
GradientBoostedTreesModel(scala.Enumeration.Value algo,
DecisionTreeModel[] trees,
double[] treeWeights) |
Modifier and Type | Method and Description |
---|---|
scala.Enumeration.Value |
algo() |
static GradientBoostedTreesModel |
load(SparkContext sc,
String path) |
void |
save(SparkContext sc,
String path)
Save this model to the given path.
|
DecisionTreeModel[] |
trees() |
double[] |
treeWeights() |
numTrees, predict, predict, predict, toDebugString, toString, totalNumNodes
public GradientBoostedTreesModel(scala.Enumeration.Value algo, DecisionTreeModel[] trees, double[] treeWeights)
public static GradientBoostedTreesModel load(SparkContext sc, String path)
public scala.Enumeration.Value algo()
public DecisionTreeModel[] trees()
public double[] treeWeights()
public void save(SparkContext sc, String path)
Saveable
This saves: - human-readable (JSON) model metadata to path/metadata/ - Parquet formatted data to path/data/
The model may be loaded using Loader.load
.