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() |
DataFrame |
transform(DataFrame dataset,
ParamMap paramMap)
Transforms the dataset with provided parameter map as additional parameters.
|
StructType |
transformSchema(StructType schema,
ParamMap paramMap)
:: DeveloperApi ::
|
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
addOutputColumn, checkInputColumn, explainParams, get, getParam, isSet, paramMap, params, set, 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 DataFrame transform(DataFrame dataset, ParamMap paramMap)
Transformer
transform
in class Transformer
dataset
- input datasetparamMap
- additional parameters, overwrite embedded paramspublic StructType transformSchema(StructType schema, ParamMap paramMap)
PipelineStage
Derives the output schema from the input schema and parameters. The schema describes the columns and types of the data.
transformSchema
in class PipelineStage
schema
- Input schema to this stageparamMap
- Parameters passed to this stage