Switch classfication functions
switch.classifier.funcs.class.Rd
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(
class.list = c("PAM", "LASSO", "ClaNC", "ranFor", "SVM", "kNN", "DLDA", "custom"),
class.funcs = NULL,
pred.funcs = NULL
)
Arguments
- class.list
A list of classification method name to be transformed. The build-in methods are "PAM", "LASSO", "ClaNC", "ranFor", "SVM", "kNN" and "DLDA".
- 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.
Examples
switch.classifier.funcs.class(class.list = c("PAM", "LASSO", "ClaNC", "ranFor", "SVM"), class.funcs = NULL, pred.funcs = NULL)
#> $build.funcs
#> [1] "pam.intcv" "lasso.intcv" "clanc.intcv" "ranfor.intcv" "svm.intcv"
#>
#> $pred.funcs
#> [1] "pam.predict" "lasso.predict" "clanc.predict" "ranfor.predict" "svm.predict"
#>