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 |
SparkDataFrame containing fitted values
## Not run: model <- spark.kmeans(trainingData, ~ ., 2) fitted.model <- fitted(model) showDF(fitted.model) ## End(Not run)