Suppress warnings in Python
1 min readApr 23, 2019
It’s one of those little snippets of code that I always forget and often need while working with numpy and scikit-learn: suppression of warnings. It’s easy as that:
import warnings
warnings.filterwarnings("ignore")
And that’s it.