coef.gensvm | R Documentation |
Returns the model coefficients of the GenSVM object
## S3 method for class 'gensvm' coef(object, ...)
object |
a |
... |
further arguments are ignored |
The coefficients of the GenSVM model. This is a matrix of size (n_{features} + 1) x (n_{classes} - 1). This matrix is used to project the input data to a low dimensional space using the equation: XW + t where X is the input matrix, t is the first row of the matrix returned by this function, and W is the n_{features} x (n_{classes} - 1) matrix formed by the remaining rows.
Gerrit J.J. van den Burg, Patrick J.F. Groenen
Maintainer: Gerrit J.J. van den Burg <gertjanvandenburg@gmail.com>
Van den Burg, G.J.J. and Groenen, P.J.F. (2016). GenSVM: A Generalized Multiclass Support Vector Machine, Journal of Machine Learning Research, 17(225):1–42. URL https://jmlr.org/papers/v17/14-526.html.
gensvm
, plot.gensvm
,
predict.gensvm
, gensvm-package
x <- iris[, -5] y <- iris[, 5] fit <- gensvm(x, y) V <- coef(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.