Open r-rakshith opened 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
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?
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
环境:(Python 3.7.8,Fasttext 0.9.2), 出现相同的问题,autotuneDuration 配置不生效
``
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!
System configuration:
master
branch with the HEAD at commit02c61efaa6d60d6bb17e6341b790fa199dfb8c83
Issue:
fasttext.train_supervised
withautotuneValidationFile
, the hyperparameter optimization runs infinitely instead of the default 5 mins.Progress: 30.2% Trials: 10 Best score: 0.711055 ETA: 0h 3m 2s
autotuneDuration
set to a smaller value (say 10 seconds), the program runs infinitely with no progress bar displayed.After an extended period of time (say after 30 mins), on sending a SIGINT (via
Ctrl+C
), the expected message"Aborting autotune..."
is displayed and next steps follow normally.In an attempt to debug the underlying issue, a print statement was added using the
std::cout
.autotune.cc
as shown belowEven 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.