How to set parameters for a custom PySpark Transformer once it's a stage in a fitted ML Pipeline?
问题 I've written a custom ML Pipeline Estimator and Transformer for my own Python algorithm by following the pattern shown here. However, in that example all the parameters needed by _transform() were conveniently passed into the Model/Transformer by the estimator's _fit() method. But my transformer has several parameters that control the way the transform is applied. These parameters are specific to the transformer so it would feel odd to pass them into the estimator in advance along with the