GeorgeLuImmortal / Hierarchical-BERT-Model-with-Limited-Labelled-Data

40 stars 12 forks source link

hello~ #2

Open jaekyoungkim opened 1 year ago

jaekyoungkim commented 1 year ago

I am trying to change your HBM model to multilabel-HBM. but it is not that easy. Do you have any idea or challenge to try multilabel-HBM?

Here is my code.

GeorgeLuImmortal commented 1 year ago

I think you should change your loss to cross entropy loss instead of using binary cross entropy loss: line: criterion = nn.BCEWithLogitsLoss() -> criterion = nn.CrossEntropyLoss()