Generic methods to train classifiers
trainWrapper(wrapper, train, trainClass, ...)
wrapper
: the wrapper instancetrain
: data.frame
of the train dataset without the class columntrainClass
: a vector containing the class column for train
...
: further arguments for wrapper
A model which is predict
callable.
myWrapper <- structure(list(), class="C50Wrapper") trainWrapper.C50Wrapper <- function(wrapper, train, trainClass){ C50::C5.0(train, trainClass) }
predict