Description Usage Arguments Value Examples
Compares Multiclass SVM, K nearest neighbor and Multiclass Logistic regression on the labelled data points using five fold cross validation
1 |
Xtilde |
n * p centered and scaled data points |
Y |
A numeric n vector of labels of Xtilde |
K |
Number of classes, ( If K is NULL, it calculates K as maximum entry in Y) |
A list of three elements a list of three elements:
error_svm |
returns five fold cross-validation error when Multiclass svm is used |
error_knn |
returns five fold cross-validation error when K-nearest neighbor is used with K = round(sqrt(N)) where N is the number of training data points |
error_logistic |
returns five fold cross-validation error when Multiclass logistic regression is used with default numIter = 50, eta = 0.1, lambda = 1 |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.