predict.em | R Documentation |
Return the closest EM cluster for a new dataset.
## S3 method for class 'em'
predict(object, newdata, ...)
object |
The classification model (of class |
newdata |
A new dataset (a |
... |
Other parameters. |
EM
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = EM (d$train.x, 3)
predict (model, d$test.x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.