Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider filtering all warnings in the notebooks #11

Open
drugilsberg opened this issue Jul 12, 2019 · 1 comment
Open

Consider filtering all warnings in the notebooks #11

drugilsberg opened this issue Jul 12, 2019 · 1 comment
Labels
question Further information is requested

Comments

@drugilsberg
Copy link
Member

We can increase the readability of the notebooks for the tutorials by filtering all warnings:

import warnings
warnings.filterwarnings('ignore')

This would address all deprecation/compatibility ones.

@drugilsberg drugilsberg added the question Further information is requested label Jul 12, 2019
@drugilsberg
Copy link
Member Author

For tensorflow another step might be required:

import os
import tensorflow as tf
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

We can select an appropriate level:

  • 0 = all messages are logged (default behavior)
  • 1 = INFO messages are not printed
  • 2 = INFO and WARNING messages are not printed
  • 3 = INFO, WARNING, and ERROR messages are not printed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant