Answers for "scale in numpy"

0

scale in numpy

abs_max = np.amax(np.abs(unnormalized_array))
normalized_array = unnormalized_array * (4.0 / abs_max)
Posted by: Guest on March-13-2021

Browse Popular Code Answers by Language