View source: R/SVMOptimFunction.R
Implement the SVM function using optim()
1 |
x |
a matrix |
y |
a matrix of the classes |
cost |
the cost function |
gradient |
the gradient function |
C |
the hyperparameter C for SVM |
method |
the method to use in the optim() function. Here, we suggest L-BFGS-B or Nelder-Mead |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.