88e8eb9b549e6da025ed5794aa79c5c75de554e3,skimage/measure/simple_metrics.py,,compare_nrmse,#Any#Any#Any#,46
Before Change
elif norm_type == "min-max":
denom = im_true.max() - im_true.min()
elif norm_type == "mean":
denom = im_true.mean()
else:
raise ValueError("Unsupported norm_type")
return np.sqrt(compare_mse(im_true, im_test)) / denom
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: 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_mse
Project Name: metric-learn/metric-learn
Commit Name: 85185175f356697f4a91feacaed2d3a9d70af95f
Time: 2019-06-12
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/rca.py
Class Name: RCA
Method Name: fit