Get fitted result from a k-means model
fitted.Rd
Get fitted result from a k-means model, similarly to R's fitted(). Note: A saved-loaded model does not support this method.
Usage
fitted(object, ...)
# S4 method for class 'KMeansModel'
fitted(object, method = c("centers", "classes"))
Examples
if (FALSE) { # \dontrun{
model <- spark.kmeans(trainingData, ~ ., 2)
fitted.model <- fitted(model)
showDF(fitted.model)
} # }