Skip to content

About label encoding in the MIL tutorial #7699

Answered by KumoLiu
mdrio asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdrio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants