facebookresearch / fastText

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

SuperVised Tutorial: Precision Very Low #1280

Open hassaanseeker opened 2 years ago

hassaanseeker commented 2 years ago

Hi in the tutorial on the supervised module of fastest in the tutorial we are shown the below results:

model = fasttext.train_supervised(input="cooking.train", lr=0.5, epoch=25, wordNgrams=2, bucket=200000, dim=50, loss='ova') model.test("cooking.valid", k=-1) (3000L, 0.702, 0.2)

Where the precision is 0.702 and recall is 0.2.

But when I run the same tutorial at my end I get the below results:

(3000, 0.003146031746031746, 1.0)

Has something changed with the newer version of fastext which is not documented yet.