Skip to contents

Transform classfication method names into a fitting function name and a prediction function name, for using in the classfication procedure

Usage

switch.classifier.funcs(
  class.list = c("PAM", "LASSO"),
  class.funcs = NULL,
  pred.funcs = NULL
)

Arguments

class.list

A list of classification method name to be transformed. The build-in methods are "PAM" and "LASSO".

class.funcs

Other classfication functions that users can create by themselves.

pred.funcs

Other prediction funcstions that users can create by themselves.

Value

A list containing build.funcs, which means the fitting function names, and pred.funcs, which means the prediction function names. The fitting functions is to be fitted on the training set and prediction function is to be used on the test set.

Details

switch.classifier.funcs

Examples

switch.classifier.funcs.class(class.list =  c("PAM", "LASSO"),
                              class.funcs = NULL, pred.funcs = NULL)
#> $build.funcs
#> [1] "pam.intcv"   "lasso.intcv"
#> 
#> $pred.funcs
#> [1] "pam.predict"   "lasso.predict"
#>