iryna-kondr / scikit-llm

Seamlessly integrate LLMs into scikit-learn.
https://beastbyte.ai/
MIT License
3.38k stars 275 forks source link

is there a way to turn off the tqdm progress bar ? #37

Closed mfahadakbar closed 1 year ago

mfahadakbar commented 1 year ago

Hi,

I wonder if there is a way to suppress the tqdm progress bar during fitting.

Thank you

OKUA1 commented 1 year ago

Hi, Currently scikit-llm estimators do not have a verbosity parameter. So the only way to disable tqdm is by modifying its init method (this would affect it globally though).

from tqdm import tqdm
from functools import partialmethod

tqdm.__init__ = partialmethod(tqdm.__init__, disable=True)
mfahadakbar commented 1 year ago

thank you