Hi scikit-learn users,

*Is there a convenient way in scikits to go from "string" features like:*

"uc_berkeley", "google", 1
"stanford", "intel", 1
.
.
.
"uiuc", "texas_instruments", 0

*to a numpy matrix like:*

 "uc_berkeley", "stanford", ..., "uiuc", "google", "intel",
"texas_instruments", "bool"
          1                0         ...     0           1           0
           0                       1
          0                1         ...     0           0           1
           0                       1
          :
          0                0         ...     1           0           0
           1                       0

I really appreciate you taking the time to help!
Thanks!
--Dhruv


-- 
Dhruv
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to