Skip to content

Instantly share code, notes, and snippets.

@wohlbier
wohlbier / mnist_estimator.py
Last active February 1, 2021 19:10 — forked from elgehelge/mnist_estimator.py
Example using TensorFlow Estimator, Experiment & Dataset on MNIST data.
"""Script to illustrate usage of tf.estimator.Estimator in TF v2.3.0"""
import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
# Show debugging output
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.DEBUG)
# Set default flags for the output directories