【发布时间】:2018-08-24 23:10:37
【问题描述】:
当我在 Azure Databricks 中实现这部分 python 代码时:
class clustomTransformations(Transformer):
<code>
custom_transformer = customTransformations()
....
pipeline = Pipeline(stages=[custom_transformer, assembler, scaler, rf])
pipeline_model = pipeline.fit(sample_data)
pipeline_model.save(<your path>)
当我尝试保存管道时,我得到了这个:
AttributeError: 'customTransformations' object has no attribute '_to_java'
有什么解决办法吗?
【问题讨论】:
标签: pyspark persistence databricks transformer