change range to 0 to 0 to 1 python

Solutions on MaxInterview for change range to 0 to 0 to 1 python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "change range to 0 to 0 to 1 python"
Maria
03 Oct 2016
1import numpy as np
2
3def NormalizeData(data):
4    return (data - np.min(data)) / (np.max(data) - np.min(data))
5