将stringindexer和onehotencoder添加到管道中

时间:2020-07-08 16:38:03

标签: python pyspark computer-vision

我想在流水线阶段添加stringindexer和onehotencoder(例如标签)。我已经通过以下方式完成:

pipeline_all = Pipeline(stages=[stringindexer_stages + onehotencoder_stages,stringindexer_label ,assembler, rf])

但是,python向我返回以下错误:

    stages = [stage.copy(extra) for stage in that.getStages()]

TypeError: copy() takes no arguments (1 given)

0 个答案:

没有答案