Created
October 17, 2016 11:33
-
-
Save alexshires/5310a751e9b767fbd3595570d618c342 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python Downloads/tensorflow_error_tutorial.py | |
WARNING:tensorflow:Change warning: default value of `enable_centered_bias` will change after 2016-10-09. It will be disabled by default.Instructions for keeping existing behaviour: | |
Explicitly set `enable_centered_bias` to 'True' if you want to keep existing behaviour. | |
INFO:tensorflow:Using config: {'task': 0, 'save_summary_steps': 100, 'keep_checkpoint_max': 5, '_is_chief': True, 'save_checkpoints_secs': 1, 'evaluation_master': '', 'tf_config': gpu_options { | |
per_process_gpu_memory_fraction: 1 | |
} | |
, 'master': '', 'keep_checkpoint_every_n_hours': 10000, '_job_name': None, 'cluster_spec': None, 'tf_random_seed': None, 'num_ps_replicas': 0} | |
INFO:tensorflow:Setting feature info to TensorSignature(dtype=tf.float32, shape=TensorShape([Dimension(None), Dimension(4)]), is_sparse=False) | |
INFO:tensorflow:Setting targets info to TensorSignature(dtype=tf.int64, shape=TensorShape([Dimension(None)]), is_sparse=False) | |
INFO:tensorflow:Transforming feature_column _RealValuedColumn(column_name='', dimension=4, default_value=None, dtype=tf.float32, normalizer=None) | |
INFO:tensorflow:Create CheckpointSaverHook | |
INFO:tensorflow:loss = 0.0283117, step = 6005 | |
INFO:tensorflow:Saving checkpoints for 6005 into /tmp/iris_model/model.ckpt. | |
WARNING:tensorflow:Given features: Tensor("input:0", shape=(?, 4), dtype=float32), required signatures: TensorSignature(dtype=tf.float32, shape=TensorShape([Dimension(None), Dimension(4)]), is_sparse=False). | |
WARNING:tensorflow:Given targets: Tensor("output:0", shape=(?,), dtype=int64), required signatures: TensorSignature(dtype=tf.int64, shape=TensorShape([Dimension(None)]), is_sparse=False). | |
INFO:tensorflow:Transforming feature_column _RealValuedColumn(column_name='', dimension=4, default_value=None, dtype=tf.float32, normalizer=None) | |
WARNING:tensorflow:Please specify metrics using MetricSpec. Using bare functions or (key, fn) tuples is deprecated and support for it will be removed on Oct 1, 2016. | |
Traceback (most recent call last): | |
File "Downloads/tensorflow_error_tutorial.py", line 51, in <module> | |
monitors=[validation_monitor]) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/dnn.py", line 435, in fit | |
max_steps=max_steps) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 333, in fit | |
max_steps=max_steps) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 708, in _train_model | |
max_steps=max_steps) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/graph_actions.py", line 285, in _monitored_train | |
None) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 368, in run | |
run_metadata=run_metadata) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 521, in run | |
run_metadata=run_metadata) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 488, in run | |
return self._sess.run(*args, **kwargs) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 625, in run | |
hook in outputs else None)) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 1215, in after_run | |
induce_stop = m.step_end(self._last_step, result) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 411, in step_end | |
return self.every_n_step_end(step, output) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 712, in every_n_step_end | |
steps=self.eval_steps, metrics=self.metrics, name=self.name) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/dnn.py", line 461, in evaluate | |
steps=steps, metrics=metrics, name=name) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 399, in evaluate | |
name=name) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 760, in _evaluate_model | |
eval_dict = self._get_eval_ops(features, targets, metrics) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 993, in _get_eval_ops | |
result.update(_make_metrics_ops(metrics, features, targets, predictions)) | |
File "/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 251, in _make_metrics_ops | |
'Metrics: %s, Targets: %s.' % (metrics, targets)) | |
ValueError: Metrics passed provide only name, no prediction, but predictions are dict. Metrics: {'recall': <function streaming_recall at 0x10d672668>, 'precision': <function streaming_precision at 0x10d672500>, 'accuracy': <tensorflow.contrib.learn.python.learn.metric_spec.MetricSpec object at 0x10ffdcbd0>}, Targets: Tensor("output:0", shape=(?,), dtype=int64). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment