IBM/depiction

Consider filtering all warnings in the notebooks

drugilsberg opened this issue · 1 comments

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.

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