Re: [Scikit-learn-general] How to use OneVsRestClassifier wrapper with libsvm

2012-08-04 Thread Mathieu Blondel
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

[Scikit-learn-general] How to use OneVsRestClassifier wrapper with libsvm

2012-08-03 Thread David Montgomery
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