predict.em: Predict function for EM

Description Usage Arguments See Also Examples

Description

Return the closest EM cluster for a new dataset.

Usage

1
2
## S3 method for class 'em'
predict(object, newdata, ...)

Arguments

object

The classification model (of class em-class, created by EM).

newdata

A new dataset (a data.frame), with same variables as the learning dataset.

...

Other parameters.

See Also

EM

Examples

1
2
3
4
5
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = EM (d$train.x, 3)
predict (model, d$test.x)

fdm2id documentation built on Oct. 29, 2021, 5:07 p.m.

Related to predict.em in fdm2id...