Displaying 1 result from an estimated 1 matches for "msparse".
Did you mean:
sparse
2006 Jan 27
3
e1071: using svm with sparse matrices (PR#8527)
...m method with a sparse matrix. Here is a sample example.
I experienced the same problem under Windows.
> library(SparseM)
[1] "SparseM library loaded"
> library("e1071")
Loading required package: class
> data(iris)
> attach(iris)
> M=as.matrix(iris[,1:4])
> Msparse=as.matrix.csr(M)
> Species=iris[,5]
> mod=svm(Msparse,Species)
Error in svm.default(Msparse, Species) : object "nac" not found