88e8eb9b549e6da025ed5794aa79c5c75de554e3,skimage/measure/simple_metrics.py,,compare_nrmse,#Any#Any#Any#,46
Before Change
denom = im_true.mean()
else:
raise ValueError("Unsupported norm_type")
return np.sqrt(compare_mse(im_true, im_test)) / denom
def compare_psnr(im_true, im_test, data_range=None):
After Change
.. [1] https://en.wikipedia.org/wiki/Root-mean-square_deviation
warn("DEPRECATED: skimage.measure.compare_nrmse has been moved to "
"skimage.metrics.normalized_root_mse. It will be removed from "
"skimage.measure in version 0.18.")
return normalized_root_mse(im_true, im_test, norm_type=norm_type)
def compare_psnr(im_true, im_test, data_range=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: scikit-image/scikit-image
Commit Name: 88e8eb9b549e6da025ed5794aa79c5c75de554e3
Time: 2019-07-21
Author: rba.eos@gmail.com
File Name: skimage/measure/simple_metrics.py
Class Name:
Method Name: compare_nrmse
Project Name: pyannote/pyannote-audio
Commit Name: 16fb800c2d3f6d7198ad237adcab8f60828d0982
Time: 2017-05-15
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/segmentation.py
Class Name: Segmentation
Method Name: apply
Project Name: nilearn/nilearn
Commit Name: 48282d57a0f11094d71c7310898ab347e6b847b3
Time: 2019-03-25
Author: gilles.de.hollander@gmail.com
File Name: nilearn/signal.py
Class Name:
Method Name: _standardize