Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about 4.7.3.3. Label Shift Correction #2560

Open
OneCoin123 opened this issue Oct 7, 2023 · 1 comment
Open

A question about 4.7.3.3. Label Shift Correction #2560

OneCoin123 opened this issue Oct 7, 2023 · 1 comment

Comments

@OneCoin123
Copy link

I'm confused about the equation $\sum_jc_{ij}p(y_j)=\mu(\hat y_i)$ and the definition of confusion matrix $C$ above.
As I understood, the equation is based on the full probability equation $$\sum_jP(\hat y=y_i|y=y_j)P(y=y_j)=P(\hat y=y_i)$$ where $\hat{y}$ stands for the predicted label of $x$ and $y$ stands for the true label of $x$. To link the two equation together, I got $P(\hat y=y_i)$ is equal to $\mu(\hat y_i)$ and $P(y=y_j)$ is equal to $p(y_j)$. So the confusion matrix element $c_{ij}$ need to be the conditional probability, while according to the definition above, the $c_{ij}$ is actually a joint probability drawn from training distribution. My question is

  • Am I thinking wrong?
  • or are we using the joint probability to calculate the target label distribution approximately while never precisely?

Looking forward to your reply!

@OneCoin123
Copy link
Author

Sorry that I didn't put the question in the forum. There was something wrong when I tried to put the question in the forum at discuss.d2l.ai.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant