
Last chance! 50% off unlimited learning
Sale ends in
Generic methods to train classifiers
trainWrapper(wrapper, train, trainClass, ...)
the wrapper instance
data.frame
of the train dataset without the class column
a vector containing the class column for train
further arguments for wrapper
A model which is predict
callable.
# 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