Skip to content

Commit

Permalink
Merge pull request #20220 from Naman-Bhalla/patch-2
Browse files Browse the repository at this point in the history
Attempt to make sense of reasoning for loss
  • Loading branch information
qlzh727 committed Jun 22, 2018
2 parents d5da48c + 7dd4d00 commit 56357d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tensorflow/docs_src/programmers_guide/custom_estimators.md
Expand Up @@ -362,10 +362,10 @@ model's loss. This is the
that will be optimized.

We can calculate the loss by calling @{tf.losses.sparse_softmax_cross_entropy}.
The value returned by this function will be lowest, approximately 0,
probability of the correct class (at index `label`) is near 1.0. The loss value
returned is progressively larger as the probability of the correct class
decreases.
The value returned by this function will be approximately 0 at lowest,
when the probability of the correct class (at index `label`) is near 1.0.
The loss value returned is progressively larger as the probability of the
correct class decreases.

This function returns the average over the whole batch.

Expand Down

0 comments on commit 56357d0

Please sign in to comment.