Github user mengxr commented on the pull request:
https://github.com/apache/spark/pull/11124#issuecomment-183131188
I checked R's output. It seems that `summary` on a k-means model doesn't
provide much information:
~~~>
summary(model)
Length Class Mode
cluster 3 -none- numeric
centers 2 -none- numeric
totss 1 -none- numeric
withinss 2 -none- numeric
tot.withinss 1 -none- numeric
betweenss 1 -none- numeric
size 2 -none- numeric
iter 1 -none- numeric
ifault 1 -none- numeric
~~~
It seems like `summary` is not implemented for k-means model. So I would
just implement `model$centers` and `fitted(model, method=c("classes"))`. Note
that we don't provide `cluster` (cluster assignments) and `size` (cluster
sizes) in Scala.
---
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]