Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12402#discussion_r60975535
  
    --- Diff: python/pyspark/ml/clustering.py ---
    @@ -22,7 +22,151 @@
     from pyspark.mllib.common import inherit_doc
     
     __all__ = ['BisectingKMeans', 'BisectingKMeansModel',
    -           'KMeans', 'KMeansModel']
    +           'KMeans', 'KMeansModel',
    +           'GaussianMixture', 'GaussianMixtureModel']
    +
    +
    +class GaussianMixtureModel(JavaModel, JavaMLWritable, JavaMLReadable):
    +    """
    +    .. note:: Experimental
    +
    +    Model fitted by GaussianMixture.
    +
    +    .. versionadded:: 2.0.0
    +    """
    +
    +    @property
    +    @since("2.0.0")
    +    def weights(self):
    +        """
    +        Weights for each Gaussian distribution in the mixture, where 
weights[i] is
    +        the weight for Gaussian i, and weights.sum == 1.
    +        """
    +        return self._call_java("weights")
    +
    +    @property
    +    @since("2.0.0")
    +    def gaussiansDF(self):
    +        """
    +        Retrieve Gaussian distributions as a DataFrame.
    +        Each row represents a Gaussian Distribution.
    +        Two columns are defined: mean and cov.
    +        Schema:
    +        root
    --- End diff --
    
    No need to fix this issue, but a JIRA for doc/example sounds good, thanks!


---
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]

Reply via email to