Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scale in numpy

abs_max = np.amax(np.abs(unnormalized_array))
normalized_array = unnormalized_array * (4.0 / abs_max)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #scale #numpy
ADD COMMENT
Topic
Name
8+1 =