Skip to content

Instantly share code, notes, and snippets.

@cpdean
Last active January 31, 2018 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpdean/3f18c04cb41973d3f62511a331741b4c to your computer and use it in GitHub Desktop.
Save cpdean/3f18c04cb41973d3f62511a331741b4c to your computer and use it in GitHub Desktop.
setting global logging for your users is a terrible transgression
(tmp-d03b8292d70950f0) - - -
tmp-d03b8292d70950f0 0
- ❯❯❯ python
Python 2.7.13 (default, Jul 18 2017, 09:17:00)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import warnings
>>> warnings.filterwarnings('ignore')
>>> import sklearn.cross_validation
/Users/cdean/.virtualenvs/tmp-d03b8292d70950f0/lib/python2.7/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
>>>
- ❯❯❯ python
Python 2.7.13 (default, Jul 18 2017, 09:17:00)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import warnings
>>> warnings.filterwarnings('ignore')
>>> def nop(*args, **kwargs):
... """ riddle me this, jnothman """
... pass
...
>>> warnings.filterwarnings = nop
>>> import sklearn.cross_validation
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment