Skip to content

Commit

Permalink
Update metrics.rst (#551)
Browse files Browse the repository at this point in the history
Fix error in docs where the line numbers are wrong for the binary accuracy example
  • Loading branch information
quanhua92 authored and ethanwharris committed May 9, 2019
1 parent d33327c commit 8b6a10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/notes/metrics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Metric Decorators
Now that we have explained some of the basic aspects of the metric API, lets have a look at an example:

.. literalinclude:: /../torchbearer/metrics/primitives.py
:lines: 17-22
:lines: 22-26

This is the definition of the default accuracy metric in torchbearer, let's break it down.

Expand Down Expand Up @@ -86,4 +86,4 @@ When :meth:`.Metric.process` is called on a :class:`.MetricTree`, the output of
of the children in turn. The results from the children are then collected in a dictionary. The main reason for including
this was to enable encapsulation of the different statistics without each one needing to compute the underlying metric
individually. In theory the :class:`.MetricTree` means that vastly complex metrics could be computed for specific use
cases, although I can't think of any right now...
cases, although I can't think of any right now...

0 comments on commit 8b6a10b

Please sign in to comment.