cicorias
8/12/2019 - 3:43 PM

supressing FutureWarning in Python Jupyter and Tensorflow / Keras

supressing FutureWarning in Python Jupyter and Tensorflow / Keras

import warnings
with warnings.catch_warnings():
    warnings.filterwarnings("ignore",category=FutureWarning)
    import tensorflow as tf
    from tensorflow import keras
    from tensorflow.keras.preprocessing.text import Tokenizer

print('ready')