facebookresearch / fastText

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

Automatic hyperparameter optimization executes for infinite duration in python package #1006

Open r-rakshith opened 4 years ago

r-rakshith commented 4 years ago

System configuration:


Issue:

In an attempt to debug the underlying issue, a print statement was added using the std::cout.

Even though it sounds silly, adding the print statement fixed the above mentioned issue, the progress on optimization was displayed and it ran for the given duration i.e autotuneDuration seconds.

andrhn commented 4 years ago

same problem. your solution worked for me) thanks a lot) p.s. don't forget to reinstall fasttext after adding new line in autotune.cc

yaoaaron commented 4 years ago

same problem. but adding that line in autotune.cc doesn't work for me after reinstall fasttext. I am using 0.9.2 version. Any one has better ideas on fixing that?

dmoklaf commented 3 years ago

My symptoms are slightly different (MacOS 10.15.7, Python 3.7.8, Fasttext 0.9.2): my autotune job completes correctly. But when I stop the server (through Ctrl+C), I still get a "Aborting autotune..." message (even if the python object is not used anymore) and the program freezes. If I press Ctrl+C again, the program crashes with a "bus error". The Python stack trace of the Python threads shows no thread stuck in fasttext code

xiongmaoyi commented 3 years ago

环境:(Python 3.7.8,Fasttext 0.9.2), 出现相同的问题,autotuneDuration 配置不生效

``

larissapaz commented 3 years ago

Every first execution was working properly and the subsequent ones I was having the same problem. So I was having to restart the visual code for each new run. Your solution solved the problem!

I think it should become a PR!