Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.cda

Model predictions


Description

This function predicts values based upon a model trained by CDA.

Usage

## S3 method for class 'cda'
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

Examples

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

fdm2id

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.