adventures-in-ml-code
adventures-in-ml-code copied to clipboard
This tutorial is very outdated
Two things.
This tutorial uses softmax_cross_entropy_with_logits()
instead of
softmax_cross_entropy_with_logits_v2().
That should be changed.
Also, this is importing the MNIST database from a soon-to-be-outdated source. I got it working by replacing the imports with
import tensorflow as tf
old_v = tf.logging.get_verbosity()
tf.logging.set_verbosity(tf.logging.ERROR)
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot = True)
tf.logging.set_verbosity(old_v)
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
I submitted a working model if you want to present a working tutorial.