code: def normalize(X):
          
          a = X.min(axis=0)
          b = X.max(axis=0)
          return (X - a[np.newaxis, :]) / ((b - a)[np.newaxis, :])
docs: MinMax normalization to fit a matrix in the space [0,1] by column.