powered by
Fit case weighted support vector machines with robust loss functions.
# S3 method for formula ccsvm(formula, data, weights, contrasts=NULL, ...) # S3 method for matrix ccsvm(x, y, weights, ...) # S3 method for default ccsvm(x, ...)
symbolic description of the model, see details.
argument controlling formula processing via model.frame.
model.frame
optional numeric vector of weights
input matrix, of dimension nobs x nvars; each row is an observation vector
response variable. Quantitative for type="eps-regression", "nu-regression" and -1/1 for type="C-classification", "nu-Classification".
type="eps-regression", "nu-regression"
type="C-classification", "nu-Classification"
the contrasts corresponding to levels from the respective models
levels
Other arguments passing to ccsvm_fit
ccsvm_fit
An object with S3 class "wsvm" for various types of models.
"wsvm"
the call that produced this object
weights in the final iteration of the COCO algorithm
original input arguments
delta value used for cfun="gcave"
cfun="gcave"
The model is fit by the COCO algorithm.
For linear kernel, the coefficients of the regression/decision hyperplane can be extracted using the coef method.
coef
Zhu Wang (2020) Unified Robust Estimation via the COCO, arXiv e-prints, https://arxiv.org/abs/2010.02848
print, predict, coef.
print
predict
# NOT RUN { #binomial x=matrix(rnorm(100*20),100,20) g2=sample(c(-1,1),100,replace=TRUE) fit=ccsvm(x,g2,s=1,cfun="ccave",type="C-classification") # }
Run the code above in your browser using DataLab