predict.model: Model predictions

predict.modelR Documentation

Model predictions

Description

This function predicts values based upon a model trained by any classification or regression model.

Usage

## S3 method for class 'model'
predict(object, test, fuzzy = FALSE, ...)

Arguments

object

The classification model (of class cda-class, created by CDA).

test

The test set (a data.frame).

fuzzy

A boolean indicating whether fuzzy classification is used or not.

...

Other parameters.

Value

A vector of predicted values (factor).

See Also

model-class

Examples

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

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

Related to predict.model in fdm2id...