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

ZeroDivisionError: division by zero #3

Open
ariefpurnamamuharram opened this issue Dec 11, 2022 · 3 comments
Open

ZeroDivisionError: division by zero #3

ariefpurnamamuharram opened this issue Dec 11, 2022 · 3 comments

Comments

@ariefpurnamamuharram
Copy link

ariefpurnamamuharram commented Dec 11, 2022

Hello. I run the model with my custom dataset. However, it returns "ZeroDivisionError" as follows. What the most possible troubleshoot for this? Is there something wrong with the dataset?
Thank you.

Screenshot 2022-12-12 at 05 38 47

@ariefpurnamamuharram
Copy link
Author

ariefpurnamamuharram commented Dec 19, 2022

Hi @SupritYoung , thank you for creating the modified version of K-BERT for English language. However, have you tried to run it with the dataset as included in the repo (implicit_hate_v1_stg1_posts)? I've try to run with the dataset, however the model can only predict label 0, and always be label 0. Do you have any idea why this happened? Thank you.

Screenshot 2022-12-20 at 06 25 18

@ariefpurnamamuharram
Copy link
Author

Furthermore, @SupritYoung no encoders provided in the uer folder?
Thank you.

@SupritYoung
Copy link
Owner

Hello, it's just part of the code, you can copy it to your project and modify little. The label prediction problem may be related to the imbalance of the data, you can see it as an example. The all code will release when my paper is accepted.

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

2 participants