我可以将新的转换器或估算器附加到管道吗?

Can I append a new transformer or estimator to the pipeline?

在 Spark ML 中,我可以加载保存的管道并将新的转换器附加到这个加载的管道吗?

您可以在 Pipeline 对象上使用 getStages 方法来获取 Array[PipelineStage],然后使用 :+ scala 运算符附加所需的 PipelineStage

val pipeline = //your pipeline
val newStage = //you new stage
pipeline.getStages :+ new Stage

希望对您有所帮助。最好的问候