scikit-image / skimage-tutorials

skimage-tutorials: a collection of tutorials for the scikit-image package.
Other
493 stars 374 forks source link

Replacing `scipy.stats.scoreatpercentile` with `numpy.percentile` #46

Closed alexdesiqueira closed 5 years ago

alexdesiqueira commented 5 years ago

As stated in sp.stats.scoreatpercentile docs,

This function will become obsolete in the future. For NumPy 1.9 and higher, numpy.percentile provides all the functionality that scoreatpercentile provides. And it’s significantly faster. Therefore it’s recommended to use numpy.percentile for users that have numpy >= 1.9.