Description Usage Arguments Value Note Examples
Get fitted result from a k-means model, similarly to R's fitted(). Note: A saved-loaded model does not support this method.
1 2 3 4 |
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
1 2 3 4 5 6 | ## Not run:
model <- spark.kmeans(trainingData, ~ ., 2)
fitted.model <- fitted(model)
showDF(fitted.model)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.