Created
November 3, 2015 05:02
-
-
Save dyerrington/ff6e3353754d24d869bc to your computer and use it in GitHub Desktop.
Another simple scaler found in scipy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scipy.interpolate import interp1d | |
# params: [from_min, from_max], [to_min, to_max] | |
m = interp1d([1,100],[1,7]) | |
m(99.234) | |
# output: array(6.9535757575757575) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interpolate from probability units to 1-5 ratings: