I am tuning the word2vec model hyper-parameters. Word2Vec has to many log in console that I cannot read Optuna or my custom log. Is there any trick to suppress logs generated by Word2Vec?
Advertisement
Answer
I used following code in python 3.7 in python 3.6 we have send logging.ERROR
to disable function.
JavaScript
x
6
1
import logging
2
3
logging.disable()
4
#your code
5
logging.disable(logging.DEBUG)
6