Skip to content

Instantly share code, notes, and snippets.

@ekampf ekampf/normalize.py
Last active Nov 20, 2016

Embed
What would you like to do?
Normalize values by std deviation
def zscore(numbers_list):
numbers = numpy.array(numbers_list)
return (numbers - numbers.mean()) / numbers.std()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.