You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/01/20 17:51:00 UTC

[GitHub] srowen commented on a change in pull request #23592: [SPARK-16838][PYTHON]Add PMML export for ML KMeans in PySpark

srowen commented on a change in pull request #23592: [SPARK-16838][PYTHON]Add PMML export for ML KMeans in PySpark
URL: https://github.com/apache/spark/pull/23592#discussion_r249288937
 
 

 ##########
 File path: python/pyspark/ml/clustering.py
 ##########
 @@ -323,7 +323,7 @@ def trainingCost(self):
         return self._call_java("trainingCost")
 
 
-class KMeansModel(JavaModel, JavaMLWritable, JavaMLReadable):
+class KMeansModel(JavaModel, GeneralJavaMLWritable, JavaMLReadable):
 
 Review comment:
   I see, this is all we need because the Scala implementation already implements `GeneralMLWritable`? sounds good as this is what LinearRegressionModel does too.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org