I know one common way to ignore warnings in Python is to use:
import warnings
warnings.filterwarnings('ignore')
And I do put these two lines up-above import <package-to-ignore>
, it didn't work, warnings still poped up, and I also tried to add warnings.filterwarnings
multiple times, still not working.
The package I use is sklearn
and some lines have parallel processing. I know this is the reason but I don't know how to fix it.
Appreciated if you can help.