2013/7/9 Joel Nothman <[email protected]>:
> * You probably want to use Encoder rather than LabelEncoder in that example

There is no Encoder. But LabelEncoder is indeed the wrong thing to
use, since it encodes *labels*, not *samples*, using a one-hot scheme.
On feature arrays, the result is unspecified.

But even if you'd skip the LabelEncoder, passing the result of
make_classification to OneHotEncoder still makes no sense. The
features are not categorical.

-- 
Lars Buitinck
Scientific programmer, ILPS
University of Amsterdam

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to