The example labels in training set you give is a multiclass traininset (one and only one class per sample). Use a multi-label set of training labels to make the LabelBinarizer switch to the 1 hot encoding:
In [69]: y_train = (['New York', 'London'], ['London']) In [70]: Y_indicator = LabelBinarizer().fit(y_train).transform(y_train) In [71]: Y_indicator Out[71]: array([[ 1., 1.], [ 1., 0.]]) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general