coef.gensvm: Get the coefficients of the fitted GenSVM model

View source: R/coef.gensvm.R

coef.gensvmR 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 gensvm object

...

further arguments are ignored

Value

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.

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)


gensvm documentation built on Feb. 16, 2023, 5:58 p.m.