public class PipelineModel extends Model<PipelineModel> implements Logging
Constructor and Description |
---|
PipelineModel(Pipeline parent,
ParamMap fittingParamMap,
Transformer[] stages) |
Modifier and Type | Method and Description |
---|---|
ParamMap |
fittingParamMap()
Fitting parameters, such that parent.fit(..., fittingParamMap) could reproduce the model.
|
<M extends Model<M>> |
getModel(Estimator<M> stage)
Gets the model produced by the input estimator.
|
Pipeline |
parent()
The parent estimator that produced this model.
|
Transformer[] |
stages() |
SchemaRDD |
transform(SchemaRDD dataset,
ParamMap paramMap)
Transforms the dataset with provided parameter map as additional parameters.
|
org.apache.spark.sql.catalyst.types.StructType |
transformSchema(org.apache.spark.sql.catalyst.types.StructType schema,
ParamMap paramMap)
Derives the output schema from the input schema and parameters.
|
transform, transform, transform, transform, transform
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
explainParams, get, getParam, isSet, paramMap, params, set, validate, validate
uid
public PipelineModel(Pipeline parent, ParamMap fittingParamMap, Transformer[] stages)
public Pipeline parent()
Model
parent
in class Model<PipelineModel>
public ParamMap fittingParamMap()
Model
fittingParamMap
in class Model<PipelineModel>
public Transformer[] stages()
public <M extends Model<M>> M getModel(Estimator<M> stage)
public SchemaRDD transform(SchemaRDD dataset, ParamMap paramMap)
Transformer
transform
in class Transformer
dataset
- input datasetparamMap
- additional parameters, overwrite embedded paramspublic org.apache.spark.sql.catalyst.types.StructType transformSchema(org.apache.spark.sql.catalyst.types.StructType schema, ParamMap paramMap)
PipelineStage
transformSchema
in class PipelineStage