public class RandomForestModel extends TreeEnsembleModel implements Saveable
Constructor and Description |
---|
RandomForestModel(scala.Enumeration.Value algo,
DecisionTreeModel[] trees) |
Modifier and Type | Method and Description |
---|---|
scala.Enumeration.Value |
algo() |
static RandomForestModel |
load(SparkContext sc,
String path) |
void |
save(SparkContext sc,
String path)
Save this model to the given path.
|
DecisionTreeModel[] |
trees() |
numTrees, predict, predict, predict, toDebugString, toString, totalNumNodes
public RandomForestModel(scala.Enumeration.Value algo, DecisionTreeModel[] trees)
public static RandomForestModel load(SparkContext sc, String path)
public scala.Enumeration.Value algo()
public DecisionTreeModel[] trees()
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
.