Open dkincaid opened 7 years ago
Trying to write a sparse matrix that was created using the text2vec package and getting an error about a type problem.
text2vec
> write.svmlight(dtm_train, rownames(dtm_train), "/tmp/pd.svm") Error in write.svmlight(dtm_train, rownames(dtm_train), "/tmp/pd.svm") : not compatible with requested type > class(dtm_train) [1] "dgCMatrix" attr(,"package") [1] "Matrix"
Second argument should be numeric vector of target variable.
Trying to write a sparse matrix that was created using the
text2vec
package and getting an error about a type problem.