trainWrapper function

Generic methods to train classifiers

Generic methods to train classifiers

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

Returns

A model which is predict callable.

Examples

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

See Also

predict

  • Maintainer: Ignacio Cordón
  • License: GPL (>= 2) | file LICENSE
  • Last published: 2020-04-07