Learn R Programming

RPEnsemble (version 0.5)

Other.classifier: The users favourite classifier

Description

User defined code to convert existing R code for classification to the correct format

Usage

Other.classifier(x, grouping, xTest, CV, ...)

Arguments

x

An n by p matrix containing the training dataset

grouping

A vector of length n containing the training data classes

xTest

An n.test by p test dataset

CV

If TRUE perform cross-validation (or otherwise) to classify training set. If FALSE, classify test set.

Optional arguments e.g. tuning parameters

Value

class

a vector of classes of the training or test set

Details

User editable code for your choice of base classifier.

References

Cannings, T. I. and Samworth, R. J. (2017) Random-projection ensemble classification, J. Roy. Statist. Soc., Ser. B. (with discussion), 79, 959--1035