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 sparkSession,
String className,
String treeClassName)
Helper method for loading a tree ensemble from disk.
|
static <M extends Params> |
saveImpl(M instance,
String path,
SparkSession sparkSession,
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 sparkSession, org.json4s.JsonAST.JObject extraMetadata)
instance
- Tree ensemble modelpath
- Path to which to save the ensemble model.extraMetadata
- Metadata such as numFeatures, numClasses, numTrees.sparkSession
- (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 sparkSession, String className, String treeClassName)
path
- Path given to saveImpl
className
- Class name for ensemble model typetreeClassName
- Class name for tree model type in the ensemblesparkSession
- (undocumented)saveImpl
for how the model was saved