titicaca / spark-iforest

Isolation Forest on Spark
Apache License 2.0
226 stars 90 forks source link

Error saving the model: scala.NotImplementedError: The default jsonEncode only supports string, vector and matrix. org.apache.spark.ml.param.Param must override jsonEncode for java.lang.Double. #15

Closed spicoflorin closed 5 years ago

spicoflorin commented 5 years ago

Hi! I would like to save the obtained model with the code model.write.overwrite().save("myisolatedforestmodel") but I bumped into the error: scala.NotImplementedError: The default jsonEncode only supports string, vector and matrix. org.apache.spark.ml.param.Param must override jsonEncode for java.lang.Double. Can you please check what is the issue?

titicaca commented 5 years ago

Thanks for reporting it. It was caused by an incorrect param type in last updates. I have just fixed it. Pull the latest codes and try again.