| write.rpusvm {rpud} | R Documentation |
The wite.rpusvm method exports a SVM model created
by rpusvm to a file.
In the non-free rpudplus add-on, the rpusvm method
is implemented in NVIDIA CUDA, and assumes necessary
double precision CUDA hardware support. The SVM
model thus trained assumes ascending classification label ordering,
and has an independent sigma coefficient for
probabilistic regression. It also includes possible scaling parameters.
Hence it is incompatible with the SVM model created by e1071.
Despite the incompatibility of the SVM models, rpusvm
supports equivalent LIBSVM functionality in e1071.
This method is not supported in the free rpud package.
write.rpusvm(object, rpusvm.file = "Rdata.rpusvm")
object |
An S3 object that inherits from |
rpusvm.file |
filename to export the |
Note: The SVM model files created by e1071 and
rpusvm are *incompatible*.
Chi Yau (based on R doc of write.svm in e1071 by Tomomi TAKASHINA)
chi.yau@r-tutor.com
## Not run:
data(iris)
attach(iris)
## classification mode
# default with factor response:
model <- rpusvm (Species~., data=iris)
# export SVM object to file
write.rpusvm(model, rpusvm.file = "iris-classifier.rpusvm")
## End(Not run)