Learn R Programming

RPEnsemble (version 0.2)

Other.classifier: The users favourite classifier

Description

User defined code to convert existing R code for a base classifier into 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, then classify the 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. Once edited, it can be used by setting base = "other" in RPChoose, RPChooseSS or RPParallel.

References

Cannings, T. I. and Samworth, R. J. (2015) Random projection ensemble classification. http://arxiv.org/abs/1504.04595