Le 29 mars 2012 10:36, Andreas <[email protected]> a écrit :
> Hi Mohit.
> Generally all algorithms in sklearn assume that all features are continuous.
> Does discrete in your case mean categorial ('0'=blue, '1'=red, '2'=green)?
> Then you should probably
> recode these features using a one-hot encoding as interpreting them as
> continuous will be meaningless.
> I am not sure in what state the functionality for this in sklearn is, maybe
> someone else can comment on that.

There is a pull request here:

  https://github.com/scikit-learn/scikit-learn/pull/242

-- 
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to