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

Weighted Log Likelihood #featurerequest #317

Open
deveshjawla opened this issue Mar 1, 2023 · 0 comments
Open

Weighted Log Likelihood #featurerequest #317

deveshjawla opened this issue Mar 1, 2023 · 0 comments

Comments

@deveshjawla
Copy link

For imbalanced datasets a weighted loss function works better than either oversampling or under sampling. Can we add this feature in Turing.jl and AdvancedHMC's NUTS? The log likelihood function would require a weight term added for each class, and according to the number of samples in the training dataset, we would scale the corresponding log likelihood term by the inverse of the number of the samples for that class. I would be happy to contribute but can't find where is it located in the source code, could someone please help?

@deveshjawla deveshjawla changed the title Weighted Log Likelihood Weighted Log Likelihood #featurerequest Mar 1, 2023
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