facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.89k stars 4.71k forks source link

multi-class text classification how to get the threshold learn by autotune #1145

Open MrRace opened 4 years ago

MrRace commented 4 years ago

When do multi-class text classification, I use -autotune-validation therefore fasttext can use the validation data to get the hyperparameters, How to get the threshold value of each class ? The way ./fasttext dump model.bin args would not print the values I want. Is there some way to get all hyperparameters? Thanks a lot!

KiteFlyKid commented 3 years ago

Hi friend. May I ask that what's your label's format when you do multi-class text classification? e.g. I have three classes : whether apple, pear, banana appeared in my text. And if all of three appeared in my text, will you make 3 lines like labelpear xxx labelapple xxx labelbanana xxx or something else like labelpear labelapple labelbanana

Thanks

MrRace commented 3 years ago

Latter one