Closed iamstarlee closed 1 year ago
This is a method to obtain the logits for each individual class. The output is of dim LxL, by multiplying by diag_mask and summing, we get the Lx1 vector.
Thanks your attention! I know this is calculating the logits for each individual class, but I don't understand why only leave the diagonal data of the output rather than summing directly
The elements on the diagonal correspond to those individual classes. Otherwise you are summing over all classes and they end up being the same values.
Alright! Thank you very much!! you are so nice! your paper inspired me a lot, it is really a good job! I am trying to classify sewer defect using C-Tran, but the recall scores are not satisfactory, hope I can get solution the next second.
I'm wondering what this diag_mask is playing in output value? Why should the output multiple a diagonal matrix? Your kind reply is very appreciated!