| cv.irsvm_fit | R Documentation | 
Internal function to conduct k-fold cross-validation for irsvm
cv.irsvm_fit(x, y, weights, cfun="ccave", s=c(1, 5), type=NULL, 
             kernel="radial", gamma=2^(-4:10), cost=2^(-4:4), 
             epsilon=0.1, balance=TRUE, nfolds=10, foldid, 
             trim_ratio=0.9, n.cores=2, ...)
| x | a data matrix, a vector, or a sparse 'design matrix' (object  of class
 | 
| y | a response vector with one label for each row/component of
 | 
| weights | the weight of each subject. It should be in the same length    of  | 
| cfun |  character, type of convex cap (concave) function. 
 | 
| s |  tuning parameter of  | 
| type | 
 
 | 
| kernel,gamma | the kernel used in training and predicting. You
might consider changing some of the following parameters, depending
on the kernel type. 
 | 
| cost | cost of constraints violation (default: 1)—it is the
‘C’-constant of the regularization term in the Lagrange formulation. This is proportional to the inverse of  | 
| epsilon | epsilon in the insensitive-loss function (default: 0.1) | 
| balance | for  | 
| nfolds | number of folds >=3, default is 10 | 
| foldid | an optional vector of values between 1 and  | 
| trim_ratio | a number between 0 and 1 for trimmed least squares, useful if  | 
| n.cores | The number of CPU cores to use. The cross-validation loop will attempt to send different CV folds off to different cores. | 
| ... | Other arguments that can be passed to  | 
This function is the driving force behind cv.irsvm. Does a K-fold cross-validation to determine optimal tuning parameters  in SVM: cost and gamma if kernel is nonlinear. It can also choose s used in cfun.    
an object of class "cv.irsvm" is returned, which is a
list with the ingredients of the cross-validation fit.
| residmat | matrix with row values for  | 
| cost | a value of  | 
| gamma | a value of  | 
| s | value of  | 
Zhu Wang <zwang145@uthsc.edu>
Zhu Wang (2024) Unified Robust Estimation, Australian & New Zealand Journal of Statistics. 66(1):77-102.
cv.irsvm and irsvm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.