Suppress warnings in Python

Gennady Laptev
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.

--

--

Gennady Laptev
Gennady Laptev

Written by Gennady Laptev

ML enthusiast. I write to learn

No responses yet