I'm not sure if that would make sense. If during the training, you tell the
model there's only one class for a column then the model only knows that.
In your case, if all samples belong to class 1 in the training data, then
as far as the model is concerned, all samples belong to class 1. If you
wan
Hi Adrin,
Thanks for the clarification. Is there a right way of letting
DecisionTreeClassifier know that the first column can take both 0 or 1, but
in the current dataset we are only using 0?
For example, we can let MultiLabelBinarizer know that we have three classes
by instantiating it like this
Hi Pranav,
The reason you're getting that output is that your first column has a
single value (1), and that becomes your "first" class, hence your first
value in the rows you're interpreting.
To understand it better, you can try to check this code:
>>> from sklearn.preprocessing import MultiLabe