powered by
Generic methods to train classifiers
trainWrapper(wrapper, train, trainClass, ...)
the wrapper instance
data.frame of the train dataset without the class column
data.frame
a vector containing the class column for train
train
further arguments for wrapper
wrapper
A model which is predict callable.
predict
# NOT RUN { myWrapper <- structure(list(), class="C50Wrapper") trainWrapper.C50Wrapper <- function(wrapper, train, trainClass){ C50::C5.0(train, trainClass) } # }
Run the code above in your browser using DataLab