zhengruifeng commented on a change in pull request #27519: [SPARK-30770][ML]
avoid vector conversion in GMM.transform
URL: https://github.com/apache/spark/pull/27519#discussion_r386237201
##########
File path: python/pyspark/ml/clustering.py
##########
@@ -252,7 +252,7 @@ class GaussianMixture(JavaEstimator,
_GaussianMixtureParams, JavaMLWritable, Jav
>>> model.predict(df.head().features)
2
>>> model.predictProbability(df.head().features)
- DenseVector([0.0, 0.4736, 0.5264])
+ DenseVector([0.0, 0.0, 1.0])
Review comment:
I had checked it in master, and when maxIter is set to 30, then the model
also output `DenseVector([0.0, 0.0, 1.0])`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]