user2802663
user2802663

Reputation: 113

How to import data form libsvm to R

I need to use data set (for example vowel testing and training data set ) from libsvm website to do classification using e1071. Then compare the performance of R with libsvm3-17. The problem is that I can not import the libsvm data to R that can be used by e1071. Any help would be greatly appreciated.

Thanks in advance

Upvotes: 0

Views: 1209

Answers (1)

lejlot
lejlot

Reputation: 66775

You can read libsvm format with built-in methods in your R library

library(e1071)
read.matrix.csr(...)

or use code by zygmuntz from github:

https://github.com/zygmuntz/r-libsvm-format-read-write

Upvotes: 1

Related Questions