Skip to content

Commit 0e7c622

Browse files
authored
Fixes flake8 issue (#2639)
Fixes #2638
1 parent e911138 commit 0e7c622

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ignite/metrics/psnr.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010

1111
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>`_.
1314
1415
.. math::
1516
\text{PSNR}(I, J) = 10 * \log_{10}\left(\frac{ MAX_{I}^2 }{ \text{ MSE } }\right)
@@ -34,7 +35,8 @@ class PSNR(Metric):
3435
The output of the engine's ``process_function`` needs to be in format of
3536
``(y_pred, y)`` or ``{'y_pred': y_pred, 'y': y, ...}``.
3637
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`.
3840
3941
.. include:: defaults.rst
4042
:start-after: :orphan:

0 commit comments

Comments
 (0)