Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.
Extracting MNIST-data/train-images-idx3-ubyte.gz
Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes.
Extracting MNIST-data/train-labels-idx1-ubyte.gz
Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes.
Extracting MNIST-data/t10k-images-idx3-ubyte.gz
Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes.
Extracting MNIST-data/t10k-labels-idx1-ubyte.gz
INFO:tensorflow:Using default config.
INFO:tensorflow:Using config: {'_save_checkpoints_secs': 600, '_num_ps_replicas': 0, '_keep_checkpoint_max': 5, '_tf_random_seed': None, '_task_type': None, '_environment': 'local', '_is_chief': True, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x11b2b0050>, '_tf_config': gpu_options {
per_process_gpu_memory_fraction: 1
}
, '_task_id': 0, '_save_summary_steps': 100, '_save_checkpoints_steps': None, '_evaluation_master': '', '_keep_checkpoint_every_n_hours': 10000, '_master': ''}
WARNING:tensorflow:From <ipython-input-2-a7cb42b00e80>:106: calling evaluate (from tensorflow.contrib.learn.python.learn.estimators.estimator) with y is deprecated and will be removed after 2016-12-01.
Instructions for updating:
Estimator is decoupled from Scikit Learn interface by moving into
separate class SKCompat. Arguments x, y and batch_size are only
available in the SKCompat class, Estimator will only accept input_fn.
Example conversion:
est = Estimator(...) -> est = SKCompat(Estimator(...))
WARNING:tensorflow:From <ipython-input-2-a7cb42b00e80>:106: calling evaluate (from tensorflow.contrib.learn.python.learn.estimators.estimator) with x is deprecated and will be removed after 2016-12-01.
Instructions for updating:
Estimator is decoupled from Scikit Learn interface by moving into
separate class SKCompat. Arguments x, y and batch_size are only
available in the SKCompat class, Estimator will only accept input_fn.
Example conversion:
est = Estimator(...) -> est = SKCompat(Estimator(...))
---------------------------------------------------------------------------
NotFittedError Traceback (most recent call last)
<ipython-input-2-a7cb42b00e80> in <module>()
108
109 if __name__ == "__main__":
--> 110 tf.app.run()
/Users/lipingzhang/anaconda/lib/python2.7/site-packages/tensorflow/python/platform/app.pyc in run(main, argv)
42 # Call the main function, passing through any arguments
43 # to the final program.
---> 44 _sys.exit(main(_sys.argv[:1] + flags_passthrough))
45
46
<ipython-input-2-a7cb42b00e80> in main(unused_argv)
104 # Evaluate the model and print results
105 eval_results = mnist_classifier.evaluate(
--> 106 x=eval_data, y=eval_labels, metrics=metrics)
107 print(eval_results)
108
/Users/lipingzhang/anaconda/lib/python2.7/site-packages/tensorflow/python/util/deprecation.pyc in new_func(*args, **kwargs)
278 _call_location(), decorator_utils.get_qualified_name(func),
279 func.__module__, arg_name, date, instructions)
--> 280 return func(*args, **kwargs)
281 new_func.__doc__ = _add_deprecated_arg_notice_to_docstring(
282 func.__doc__, date, instructions)
/Users/lipingzhang/anaconda/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.pyc in evaluate(self, x, y, input_fn, feed_fn, batch_size, steps, metrics, name, checkpoint_path, hooks, log_progress)
499 _verify_input_args(x, y, input_fn, feed_fn, batch_size)
500 if x is not None:
--> 501 return SKCompat(self).score(x, y, batch_size, steps, metrics)
502
503 if metrics is not None and not isinstance(metrics, dict):
/Users/lipingzhang/anaconda/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.pyc in score(self, x, y, batch_size, steps, metrics)
1366 steps=steps,
1367 metrics=metrics,
-> 1368 name='score')
1369 if eval_results is not None:
1370 eval_results.update({'global_step': global_step})
/Users/lipingzhang/anaconda/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.pyc in _evaluate_model(self, input_fn, steps, feed_fn, metrics, name, checkpoint_path, hooks, log_progress)
788 if not latest_path:
789 raise NotFittedError("Couldn't find trained model at %s."
--> 790 % self._model_dir)
791 checkpoint_path = latest_path
792
NotFittedError: Couldn't find trained model at /tmp/mnist_convnet_model.