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 on "alpha" param for categorical cross entropy loss #20

Open
captainst opened this issue Jun 11, 2021 · 0 comments
Open

a question on "alpha" param for categorical cross entropy loss #20

captainst opened this issue Jun 11, 2021 · 0 comments

Comments

@captainst
Copy link

From the categorical entropy loss implementation, it seems that the "alpha" array is used to weight the losses among different categories. I.e, the bigger the value is, the loss for that category is weighted more than other categories.

For example, if we have C=3 (from C1 ~ C3), and alpha = [0.2,0.4,0.2], does it mean that loss of C1 is weighted the same as that of C3, while the loss of C2 is weighted twice as much as those of C1 and C3 ?

In this case, alpha=[0.2,0.4,0.2] should have the same effect as alpha=[0.4,0.8,0.4]

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