I am doing text classification. For this I am vectorizing my test using CountVectorizer and TfidfTransformer. This returns a sparse matrix. Now to use it as input for stacknet, I need to convert it into libsvm format. Is there any library that does this? Also, if I write the libsvm sparse matrix to a file, will stacknet be able to process it as its input?
I am doing text classification. For this I am vectorizing my test using CountVectorizer and TfidfTransformer. This returns a sparse matrix. Now to use it as input for stacknet, I need to convert it into libsvm format. Is there any library that does this? Also, if I write the libsvm sparse matrix to a file, will stacknet be able to process it as its input?