aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/tutorials
diff options
context:
space:
mode:
authorGravatar Dandelion Mané <dandelion@google.com>2017-03-10 14:43:23 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-10 15:18:15 -0800
commit0386a01ad3beb28364599d82199be1c0837b3fa9 (patch)
tree3a1d2ef947a7bf37286efc0e8ff760e0401ab319 /tensorflow/examples/tutorials
parente73ceaebb209a1e577e7240fba41c692c89143d0 (diff)
Merge changes from github.
Change: 149800363
Diffstat (limited to 'tensorflow/examples/tutorials')
-rw-r--r--tensorflow/examples/tutorials/layers/cnn_mnist.py2
-rw-r--r--tensorflow/examples/tutorials/monitors/iris_monitors.py18
2 files changed, 10 insertions, 10 deletions
diff --git a/tensorflow/examples/tutorials/layers/cnn_mnist.py b/tensorflow/examples/tutorials/layers/cnn_mnist.py
index 09dbffd517..aa92b1758a 100644
--- a/tensorflow/examples/tutorials/layers/cnn_mnist.py
+++ b/tensorflow/examples/tutorials/layers/cnn_mnist.py
@@ -148,7 +148,7 @@ def main(unused_argv):
# Configure the accuracy metric for evaluation
metrics = {
"accuracy":
- learn.metric_spec.MetricSpec(
+ learn.MetricSpec(
metric_fn=tf.metrics.accuracy, prediction_key="classes"),
}
diff --git a/tensorflow/examples/tutorials/monitors/iris_monitors.py b/tensorflow/examples/tutorials/monitors/iris_monitors.py
index 041592b9b0..a4bf353856 100644
--- a/tensorflow/examples/tutorials/monitors/iris_monitors.py
+++ b/tensorflow/examples/tutorials/monitors/iris_monitors.py
@@ -39,20 +39,20 @@ def main(unused_argv):
validation_metrics = {
"accuracy":
- tf.contrib.learn.metric_spec.MetricSpec(
+ tf.contrib.learn.MetricSpec(
metric_fn=tf.contrib.metrics.streaming_accuracy,
- prediction_key=tf.contrib.learn.prediction_key.PredictionKey.
- CLASSES),
+ prediction_key=
+ tf.contrib.learn.prediction_key.PredictionKey.CLASSES),
"precision":
- tf.contrib.learn.metric_spec.MetricSpec(
+ tf.contrib.learn.MetricSpec(
metric_fn=tf.contrib.metrics.streaming_precision,
- prediction_key=tf.contrib.learn.prediction_key.PredictionKey.
- CLASSES),
+ prediction_key=
+ tf.contrib.learn.prediction_key.PredictionKey.CLASSES),
"recall":
- tf.contrib.learn.metric_spec.MetricSpec(
+ tf.contrib.learn.MetricSpec(
metric_fn=tf.contrib.metrics.streaming_recall,
- prediction_key=tf.contrib.learn.prediction_key.PredictionKey.
- CLASSES)
+ prediction_key=
+ tf.contrib.learn.prediction_key.PredictionKey.CLASSES)
}
validation_monitor = tf.contrib.learn.monitors.ValidationMonitor(
test_set.data,