Hi all, I've just submitted my first bug report:
"feature_extraction.text.CountVectorizer returns ValueError with
single character text features"
https://github.com/scikit-learn/scikit-learn/issues/1207

The bug/feature is small, I've included an inline fix (2 lines). I'd
be happy to fork and generate a pull request if it'll make someone's
life easier. Rather than just generate a pull request I wanted to
confirm that raising an Exception to warn a user about a less-useful
exception that is sure to happen is the right way to improve this
code. The latter exception tripped me up for 30 minutes on my first
use of sklearn and the fix should help a future new user not make the
same mistake.

The bug report contains a 4 line demo of the problem and is tested
against version 0.12.

Ian.

-- 
Ian Ozsvald (A.I. researcher)
[email protected]

http://IanOzsvald.com
http://MorConsulting.com/
http://StrongSteam.com/
http://SocialTiesApp.com/
http://TheScreencastingHandbook.com
http://FivePoundApp.com/
http://twitter.com/IanOzsvald
http://ShowMeDo.com

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to