-
Hi, I am wondering why the labels in the MIL tutorial, implemented in the class LabelEncodeIntegerGraded, have 1 filled in up to label index and is not one-hot. If I understand well, label 2 will be encoded in 11000, while in one-hot fashion should be 01000. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @mdrio, In this Multiple Instance Learning (MIL) tutorial, labels are encoded using a graded label encoding instead of a traditional one-hot encoding. This approach is taken because, in this context, the class levels are ordinal i.e., class 1 is lower than class 2, class 2 is lower than class 3, and so on. Therefore, it is understood that class 2 combines information from both class 1 and itself, hence it's encoded as 11000 instead of 01000. Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
Hi @mdrio,
In this Multiple Instance Learning (MIL) tutorial, labels are encoded using a graded label encoding instead of a traditional one-hot encoding. This approach is taken because, in this context, the class levels are ordinal i.e., class 1 is lower than class 2, class 2 is lower than class 3, and so on. Therefore, it is understood that class 2 combines information from both class 1 and itself, hence it's encoded as 11000 instead of 01000.
In this type of encoding, a class i would be represented by i ones followed by zeros. This encoding effectively represents this grading context where higher classes encompass more lower-class information.
Regarding your second question, a MIL appro…