fitted {SparkR} | R Documentation |
Get fitted result from a k-means model, similarly to R's fitted(). Note: A saved-loaded model does not support this method.
fitted(object, ...) ## S4 method for signature 'KMeansModel' fitted(object, method = c("centers", "classes"))
object |
a fitted k-means model. |
... |
additional argument(s) passed to the method. |
method |
type of fitted results, |
fitted
returns a SparkDataFrame containing fitted values.
fitted since 2.0.0
## Not run:
##D model <- spark.kmeans(trainingData, ~ ., 2)
##D fitted.model <- fitted(model)
##D showDF(fitted.model)
## End(Not run)