Skip to content

Commit

Permalink
s/eval_metrics/eval_metric_ops/g
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Dec 24, 2016
1 parent f10dcd8 commit 31166b5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ run(model_fn, train_input_fn, eval_input_fn=None)
`Tensor, ...`,
`Tensor, ..., mode=ModeKeys`.
Types of its return values must be one of the following:
`Tensor, Tensor, Operation, eval_metrics=dict<str, Tensor>`
(predictions, loss, train_op, and eval_metrics (if any)),
`Tensor, Tensor, Operation, eval_metric_ops=dict<str, Tensor>`
(predictions, loss, train_op, and eval_metric_ops (if any)),
`ModelFnOps`.
train_input_fn, eval_input_fn: Functions to serve input Tensors
fed into the model. If `eval_input_fn` is `None`,
Expand Down
4 changes: 2 additions & 2 deletions docs/qnd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1162,8 +1162,8 @@ <h2 class="section-title" id="header-functions">Functions</h2>
`Tensor, ...`,
`Tensor, ..., mode=ModeKeys`.
Types of its return values must be one of the following:
`Tensor, Tensor, Operation, eval_metrics=dict<str, Tensor>`
(predictions, loss, train_op, and eval_metrics (if any)),
`Tensor, Tensor, Operation, eval_metric_ops=dict<str, Tensor>`
(predictions, loss, train_op, and eval_metric_ops (if any)),
`ModelFnOps`.
train_input_fn, eval_input_fn: Functions to serve input Tensors
fed into the model. If `eval_input_fn` is `None`,
Expand Down
6 changes: 3 additions & 3 deletions examples/mnist/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def mnist_model(image, number):
tf.nn.sparse_softmax_cross_entropy_with_logits(h, number))
predictions = tf.argmax(h, axis=1)
train_op = minimize(loss)
eval_metrics = {
eval_metric_ops = {
"accuracy": tf.reduce_mean(tf.to_float(tf.equal(predictions, number)))
}

Expand All @@ -50,9 +50,9 @@ def mnist_model(image, number):
predictions=predictions,
loss=loss,
train_op=train_op,
eval_metrics=eval_metrics)
eval_metric_ops=eval_metric_ops)

return predictions, loss, train_op, eval_metrics
return predictions, loss, train_op, eval_metric_ops


run = qnd.def_run()
Expand Down
4 changes: 2 additions & 2 deletions qnd/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def run(model_fn, train_input_fn, eval_input_fn=None):
`Tensor, ...`,
`Tensor, ..., mode=ModeKeys`.
Types of its return values must be one of the following:
`Tensor, Tensor, Operation, eval_metrics=dict<str, Tensor>`
(predictions, loss, train_op, and eval_metrics (if any)),
`Tensor, Tensor, Operation, eval_metric_ops=dict<str, Tensor>`
(predictions, loss, train_op, and eval_metric_ops (if any)),
`ModelFnOps`.
train_input_fn, eval_input_fn: Functions to serve input Tensors
fed into the model. If `eval_input_fn` is `None`,
Expand Down

0 comments on commit 31166b5

Please sign in to comment.