coef.gensvm {gensvm} | R Documentation |
Get the coefficients of the fitted GenSVM model
Description
Returns the model coefficients of the GenSVM object
Usage
## S3 method for class 'gensvm'
coef(object, ...)
Arguments
object |
a |
... |
further arguments are ignored |
Value
The coefficients of the GenSVM model. This is a matrix of size
. This matrix is used to project
the input data to a low dimensional space using the equation:
where
is the input matrix,
is the first row of the matrix
returned by this function, and
is the
matrix formed by the remaining rows.
Author(s)
Gerrit J.J. van den Burg, Patrick J.F. Groenen
Maintainer: Gerrit J.J. van den Burg <gertjanvandenburg@gmail.com>
References
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.
See Also
gensvm
, plot.gensvm
,
predict.gensvm
, gensvm-package
Examples
x <- iris[, -5]
y <- iris[, 5]
fit <- gensvm(x, y)
V <- coef(fit)