Description Usage Arguments Value Author(s) References See Also Examples
Given the set of samples for training and the type of classification algorithm, this function constructs the classifier using the training set, and predicts the class labels of the test set using the trained classifier.
1 2 3 | Classifier(train, test = NULL, train.label, type = c("TSP", "GLM", "GLM_L1",
"GLM_L2", "PAM", "SVM", "plsrf_x", "plsrf_x_pv", "RF"),
CVtype = c("loocv", "k-fold"), outerkfold = 5, innerkfold = 5)
|
train |
An object of class |
test |
An object of class |
train.label |
A numeric vector contains the actual class labels (0 or 1) of the training set. NOTE: class labels should be numerical not factor. |
type |
Type of classification algorithms used. Currently 9 well-known algorithm are available for user the choose from. They are: top scoring pair (TSP), logistic regression (GLM), GLM with L1 (lasso) penalty, GLM with L2 (ridge) penalty, prediction analysis for microarray (PAM), support vector machine (SVM), Random Forest combined with partial least square dimension reduction (plsrf_x), Random Forest combined with partial least square dimension reduction plus pre-validation (plsrf_x_pv), Random Forest (RF). NOTE: "TSP", "PAM", "plsrf_x" and "plsrf_x_pv" are exclusively designed for high-dimensional data. |
CVtype |
Cross-validation type to obtain predicted labels of the training set. Must be either k-fold cross-validation (k-fold), or leave-one-out-cross-validation (loocv). |
outerkfold |
Number of cross-validation used in the training phase. |
innerkfold |
Number of cross validation used to estimate the model parameters. E.g. penalty parameter in "GLM_L1". |
A list object contains following components:
P.train |
predicted class labels of the training set. |
P.test |
predicted class labels of the test set if the test set is given. |
Askar Obulkasim
Maintainer: Askar Obulkasim <askar703@gmail.com>
Aik Choo Tan and Daniel Q. Naiman and Lei Xu and Raimond L. Winslow and Donald Geman(2005). Simple Decision Rules for Classifying Human Cancers from Gene Expression Profiles(TSP). Bioinformatics, 21, 3896-3904.
Anne-Laure Boulesteix and Christine Porzelius and Martin Daumer(2008). Microarray-based Classification and Clinical Predictors: on Combined Classifiers and Additional Predictive Value. Bioinformatics, 24, 1698–1706.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.