public static class TreeEnsembleModel.SaveLoadV1_0$
extends Object
Modifier and Type | Class and Description |
---|---|
class |
TreeEnsembleModel.SaveLoadV1_0$.EnsembleNodeData
Model data for model import/export.
|
class |
TreeEnsembleModel.SaveLoadV1_0$.Metadata |
Modifier and Type | Field and Description |
---|---|
static TreeEnsembleModel.SaveLoadV1_0$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
TreeEnsembleModel.SaveLoadV1_0$() |
Modifier and Type | Method and Description |
---|---|
DecisionTreeModel[] |
loadTrees(SparkContext sc,
String path,
String treeAlgo)
Load trees for an ensemble, and return them in order.
|
org.apache.spark.mllib.tree.model.TreeEnsembleModel.SaveLoadV1_0.Metadata |
readMetadata(org.json4s.JsonAST.JValue metadata)
Read metadata from the loaded JSON metadata.
|
void |
save(SparkContext sc,
String path,
TreeEnsembleModel model,
String className) |
String |
thisFormatVersion() |
public static final TreeEnsembleModel.SaveLoadV1_0$ MODULE$
public String thisFormatVersion()
public void save(SparkContext sc, String path, TreeEnsembleModel model, String className)
public org.apache.spark.mllib.tree.model.TreeEnsembleModel.SaveLoadV1_0.Metadata readMetadata(org.json4s.JsonAST.JValue metadata)
public DecisionTreeModel[] loadTrees(SparkContext sc, String path, String treeAlgo)
path
- path to load the model fromtreeAlgo
- Algorithm for individual trees (which may differ from the ensemble's
algorithm).