Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/10552#discussion_r48989645
--- Diff:
examples/src/main/scala/org/apache/spark/examples/mllib/DenseGaussianMixture.scala
---
@@ -58,6 +58,11 @@ object DenseGaussianMixture {
(clusters.weights(i), clusters.gaussians(i).mu,
clusters.gaussians(i).sigma))
}
+ println("The membership value of each vector to all mixture components
(first <= 100):")
+ val membership = clusters.predictSoft(data)
+ membership.take(100).foreach { x =>
+ print(" " + x.mkString(","))
+ }
--- End diff --
I'd add a println after this for spacing.
---
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]