ykwon0407 / UQ_BNN

Uncertainty quantification using Bayesian neural networks in classification (MIDL 2018, CSDA)
133 stars 21 forks source link

the diag problem #12

Open ponykid opened 1 year ago

ponykid commented 1 year ago

Thank you for your sharing your code, I have some questions. In your paper, appendix A, For categorical variable y∗, Varp(y∗|x∗,ω)(y∗) = Ep(y∗|x∗,ω)(y∗⊗2)−Ep(y∗|x∗,ω)(y∗)⊗2 and it is Ep(y∗|x∗,ω){diag(y∗)}−Ep(y∗|x∗,ω)(y∗)⊗2 because y∗ is one-hot encoded.

However, You known, the output of softmax is not one-hot encoded variable, each position is the probability of the classes , for example, the output is [0.9,0.1,0.1](not one-hot), the ground trouth is 1,0,0, so do we really can use the "it is Ep(y∗|x∗,ω){diag(y∗)}−Ep(y∗|x∗,ω)(y∗)⊗2 because y∗ is one-hot encoded. "?

Feng

ykwon0407 commented 1 year ago

Hi Feng,

I do not think I understand your question. What do you mean by do we really can use the "it is Ep(y∗|x∗,ω){diag(y∗)}−Ep(y∗|x∗,ω)(y∗)⊗2 because y∗ is one-hot encoded. "?