EdgeTA / utils /common /data.py
LINC-BIT's picture
Upload 1912 files
b84549f verified
raw
history blame contribute delete
143 Bytes
import numpy as np
def min_max_normalize(data):
data = np.asarray(data)
return (data - np.min(data)) / (np.max(data) - np.min(data))