File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
11
11
class PSNR (Metric ):
12
- r"""Computes average `Peak signal-to-noise ratio (PSNR) <https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio>`_.
12
+ r"""Computes average
13
+ `Peak signal-to-noise ratio (PSNR) <https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio>`_.
13
14
14
15
.. math::
15
16
\text{PSNR}(I, J) = 10 * \log_{10}\left(\frac{ MAX_{I}^2 }{ \text{ MSE } }\right)
@@ -34,7 +35,8 @@ class PSNR(Metric):
34
35
The output of the engine's ``process_function`` needs to be in format of
35
36
``(y_pred, y)`` or ``{'y_pred': y_pred, 'y': y, ...}``.
36
37
37
- For more information on how metric works with :class:`~ignite.engine.engine.Engine`, visit :ref:`attach-engine`.
38
+ For more information on how metric works with :class:`~ignite.engine.engine.Engine`,
39
+ visit :ref:`attach-engine`.
38
40
39
41
.. include:: defaults.rst
40
42
:start-after: :orphan:
You can’t perform that action at this time.
0 commit comments