public class EnsembleModelReadWrite
extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EnsembleModelReadWrite.EnsembleNodeData
Info for one
Node in a tree ensemble |
static class |
EnsembleModelReadWrite.EnsembleNodeData$ |
Constructor and Description |
---|
EnsembleModelReadWrite() |
Modifier and Type | Method and Description |
---|---|
static scala.Tuple3<org.apache.spark.ml.util.DefaultParamsReader.Metadata,scala.Tuple2<org.apache.spark.ml.util.DefaultParamsReader.Metadata,Node>[],double[]> |
loadImpl(String path,
SparkSession sql,
String className,
String treeClassName)
Helper method for loading a tree ensemble from disk.
|
static <M extends Params> |
saveImpl(M instance,
String path,
SparkSession sql,
org.json4s.JsonAST.JObject extraMetadata)
Helper method for saving a tree ensemble to disk.
|
public static <M extends Params> void saveImpl(M instance, String path, SparkSession sql, org.json4s.JsonAST.JObject extraMetadata)
instance
- Tree ensemble modelpath
- Path to which to save the ensemble model.extraMetadata
- Metadata such as numFeatures, numClasses, numTrees.sql
- (undocumented)public static scala.Tuple3<org.apache.spark.ml.util.DefaultParamsReader.Metadata,scala.Tuple2<org.apache.spark.ml.util.DefaultParamsReader.Metadata,Node>[],double[]> loadImpl(String path, SparkSession sql, String className, String treeClassName)
path
- Path given to saveImpl
className
- Class name for ensemble model typetreeClassName
- Class name for tree model type in the ensemblesql
- (undocumented)saveImpl
for how the model was saved