msaf/utils.py
def min_max_normalize(F, floor=0.001):
    """Normalizes features such that each vector is between floor to 1."""
    F += -F.min() + floor
    F = F / F.max(axis=0)
    return F
def min_max_normalize(F, floor=0.001):
    F += -F.min() + floor
    F = F / F.max(axis=0)
    return F
def min_max_normalize ( F , floor = 0.001 ) : F += - F . min ( ) + floor F = F / F . max ( axis = 0 ) return F
Normalizes features such that each vector is between floor to 1.
Normalizes features such that each vector is between floor to 1 .