I am writing a custom spark.ml transformer by extending Transformer.
Everything is fine, however I am not able to save this instance of this transformer since it does not extend from DefaultParamsWritable
trait as does all transformers, and I cannot directly mixin DefaultParamsWritable
trait either as it is package specific for org.apache.spark.ml
.
One workaround to this is to put your class under org.apache.spark.ml
. Is this the only way to achieve this? Any better solutions?