Package org.apache.spark.ml
Class Pipeline.SharedReadWrite$
Object
org.apache.spark.ml.Pipeline.SharedReadWrite$
- Enclosing class:
- Pipeline
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Pipeline.SharedReadWrite$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetStagePath
(String stageUid, int stageIdx, int numStages, String stagesDir) Get path for saving the given stage.scala.Tuple2<String,
PipelineStage[]> load
(String expectedClassName, SparkContext sc, String path) Load metadata and stages for aPipeline
orPipelineModel
void
saveImpl
(Params instance, PipelineStage[] stages, SparkContext sc, String path) Save metadata and stages for aPipeline
orPipelineModel
- save metadata to path/metadata - save stages to stages/IDX_UIDvoid
validateStages
(PipelineStage[] stages) Check that all stages are Writable
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
SharedReadWrite$
public SharedReadWrite$()
-
-
Method Details
-
validateStages
Check that all stages are Writable -
saveImpl
Save metadata and stages for aPipeline
orPipelineModel
- save metadata to path/metadata - save stages to stages/IDX_UID- Parameters:
instance
- (undocumented)stages
- (undocumented)sc
- (undocumented)path
- (undocumented)
-
load
public scala.Tuple2<String,PipelineStage[]> load(String expectedClassName, SparkContext sc, String path) Load metadata and stages for aPipeline
orPipelineModel
- Parameters:
expectedClassName
- (undocumented)sc
- (undocumented)path
- (undocumented)- Returns:
- (UID, list of stages)
-
getStagePath
Get path for saving the given stage.
-