print.gensvm {gensvm} | R Documentation |
Prints a short description of the fitted GenSVM model
## S3 method for class 'gensvm'
print(x, ...)
x |
A |
... |
further arguments are ignored |
returns the object passed as input. This can be useful for chaining operations on a fit object.
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
, predict.gensvm
,
plot.gensvm
, gensvm-package
x <- iris[, -5]
y <- iris[, 5]
# fit and print the model
fit <- gensvm(x, y)
print(fit)
# (advanced) use the fact that print returns the fitted model
fit <- gensvm(x, y)
predict(print(fit), x)