Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/12675#discussion_r62555155
--- Diff: python/pyspark/ml/clustering.py ---
@@ -58,6 +58,124 @@ def gaussiansDF(self):
"""
return self._call_java("gaussiansDF")
+ @property
+ @since("2.0.0")
+ def summary(self):
+ """
+ Gets summary of model on training set. An exception is thrown if
+ `trainingSummary is None`.
+ """
+ java_gmt_summary = self._call_java("summary")
+ return GaussianMixtureTrainingSummary(java_gmt_summary)
+
+ @property
+ @since("2.0.0")
+ def hasSummary(self):
+ """
+ Indicates whether a training summary exists for this model
+ instance.
+ """
+ return self._call_java("hasSummary")
+
+ @since("2.0.0")
+ def evaluate(self, dataset):
--- End diff --
This function doesn't appear to be present in the Scala
`GaussianMixtureModel` - can you double check your functions against the
Scaladoc to make sure your wrapping the correct methods?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]