2012/1/19 ert <[email protected]>

> I wanted to train a multinomialnb classifier on a training set containing
> 18k features each containing about 1.8M examples .. Unfortunately I do not
> have enough memory ( I have 4G) on my system to create such an array...Is
> there a sparse implementation of Naive Bayes which can be used? or is there
> any other way I could accomplish this task?
>

MultinomialNB supports scipy.sparse matrices out of the box, so that should
be no problem if your samples array is sparse enough.

-- 
Lars Buitinck
Scientific programmer, ILPS
University of Amsterdam
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to