switch.classifier.funcs: Switch classfication functions

switch.classifier.funcsR Documentation

Switch classfication functions

Description

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.

Details

switch.classifier.funcs

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.

Examples

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



yilinwu123/precision1 documentation built on June 28, 2022, 2:53 a.m.