autoliuweijie / K-BERT

Source code of K-BERT (AAAI2020)
https://ojs.aaai.org//index.php/AAAI/article/view/5681
949 stars 212 forks source link

ZeroDivisionError: division by zero #84

Open ariefpurnamamuharram opened 1 year ago

ariefpurnamamuharram commented 1 year ago

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 59 34
ariefpurnamamuharram commented 1 year ago

Why my dataset always return ZeroDivisionError? Any clue @autoliuweijie regarding this? Thank you

ariefpurnamamuharram commented 1 year ago

Further analysis shows that the model can only predict one class (of some class). @autoliuweijie do you have any idea or how to debug it? Thank you