byu-dml / metalearn

BYU's python library of useable tools for metalearning
MIT License
22 stars 6 forks source link

Please don't suppress warnings globally #144

Closed mitar closed 5 years ago

mitar commented 6 years ago

I see the following code:

warnings.filterwarnings("ignore", category=RuntimeWarning) # suppress sklearn warnings
warnings.filterwarnings("ignore", category=UserWarning) # suppress sklearn warnings

This suppresses warnings globally in the whole process. Please do not do this. See this section how to do it temporary just for your code.