predict.em: Predict function for EM

predict.emR Documentation

Predict function for EM

Description

Return the closest EM cluster for a new dataset.

Usage

## 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

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

fdm2id documentation built on July 9, 2023, 6:05 p.m.

Related to predict.em in fdm2id...