jpxkqx commited on
Commit
3975131
·
1 Parent(s): 1cc103f
Files changed (1) hide show
  1. peak_signal_to_noise_ratio.py +2 -2
peak_signal_to_noise_ratio.py CHANGED
@@ -1,4 +1,4 @@
1
- """Accuracy metric."""
2
 
3
  import datasets
4
  import numpy as np
@@ -21,7 +21,7 @@ Args:
21
  references (`list` of `np.array`): Ground truth labels.
22
  sample_weight (`list` of `float`): Sample weights Defaults to None.
23
  Returns:
24
- psnr (`float`):Peak Signal-to-Noise Ratio. The SSIM values are positive. Typical
25
  values for the PSNR in lossy image and video compression are between 30 and 50 dB,
26
  provided the bit depth is 8 bits, where higher is better.
27
  Examples:
 
1
+ """Peak Signal-to-Noise Ratio metric."""
2
 
3
  import datasets
4
  import numpy as np
 
21
  references (`list` of `np.array`): Ground truth labels.
22
  sample_weight (`list` of `float`): Sample weights Defaults to None.
23
  Returns:
24
+ psnr (`float`): Peak Signal-to-Noise Ratio. The SSIM values are positive. Typical
25
  values for the PSNR in lossy image and video compression are between 30 and 50 dB,
26
  provided the bit depth is 8 bits, where higher is better.
27
  Examples: