trainWrapper: Generic methods to train classifiers

Description Usage Arguments Value See Also Examples

View source: R/racog.R

Description

Generic methods to train classifiers

Usage

1
trainWrapper(wrapper, train, trainClass, ...)

Arguments

wrapper

the wrapper instance

train

data.frame of the train dataset without the class column

trainClass

a vector containing the class column for train

...

further arguments for wrapper

Value

A model which is predict callable.

See Also

predict

Examples

1
2
3
4
myWrapper <- structure(list(), class="C50Wrapper")
trainWrapper.C50Wrapper <- function(wrapper, train, trainClass){
  C50::C5.0(train, trainClass)
}

imbalance documentation built on Feb. 19, 2018, 1:03 a.m.