On Sat, Aug 4, 2012 at 3:04 PM, David Montgomery
wrote:
> I am confused on how to use OvR using the libsvm SVC.
>
> 1) Do I have to have my feature vectors in dense format? from X =
> self.vectorizer.fit_transform(self.corpus) ==> X.todense() Or, is
> sparse OK i.e. X.tocsr()
>
You can use the C
Hi,
I am using the below to vectorized a corpus.
self.vectorizer =
CountVectorizer(tokenizer=self.custom_tokenizer,lowercase=self.lowercase,binary=self.is_binary)
self.X = self.vectorizer.fit_transform(self.corpus)
The output is a sparse matrix in csr format. Great!
Anyway I have multiclass d