Le 15 mars 2012 14:05, Warren Weckesser
<[email protected]> a écrit :
>
>> There is a binarization transformer in the sklearn.preprocessing package:
>>
>> http://scikit-learn.org/stable/modules/preprocessing.html#binarization
>>
>
>
> That is not the same operation that Conrad is looking for.  The link he gave
> shows the following example: given a field called 'color' containing
> categorical values (e.g.  'purple', 'blue', 'red'), create a new array in
> which the 'color' field is replaced by three fields, say 'color#purple',
> 'color#blue', 'color#red', with boolean values.

Sorry, my bad, I replied too fast without reading the doc I was
pointing to... I was actually thinking about this one which is not
document in the preprocessing documentation narrative:

  
http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.LabelBinarizer.html

-- 
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