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

    https://github.com/apache/spark/pull/15413#discussion_r94921866
  
    --- Diff: python/pyspark/ml/clustering.py ---
    @@ -95,15 +95,10 @@ class GaussianMixture(JavaEstimator, HasFeaturesCol, 
HasPredictionCol, HasMaxIte
         >>> weights = model.weights
         >>> len(weights)
         3
    -    >>> model.gaussiansDF.show()
    -    +--------------------+--------------------+
    -    |                mean|                 cov|
    -    +--------------------+--------------------+
    -    |[0.82500000140229...|0.005625000000006...|
    -    |[-0.4777098016092...|0.167969502720916...|
    -    |[-0.4472625243352...|0.167304119758233...|
    -    +--------------------+--------------------+
    -    ...
    +    >>> model.gaussiansDF.select("mean").head()
    --- End diff --
    
    Using fewer digits can not solve the unstable test issue, since the output 
of ```gaussiansDF.show()``` is pure string, we must match them exactly. 
Actually ```gaussiansDF.show()``` only shows part of the whole DataFrame, 
others are omitted, so the original test does not check for all cells of 
```gaussiansDF```.


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