On Mon, Feb 27, 2012 at 10:06:39AM +0100, Matthias Ekman wrote:
> I guess my question was more on how to force the fit method to learn a 
> binary output. Using my code below, it assumes a regression problem. How 
> do I use Elastic Net for classification in practice?

Subclass the ElasticNet class and override it's predict and score methods
to be useful for classification. You can retrieve those methods from a
classifier.

G

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to