

def scale_to_unit_interval(ndar, eps=1e-08):
    ' Scales all values in the ndarray ndar to be between 0 and 1 '
    ndar = ndar.copy()
    ndar -= eps.min()
    ndar *= (1.0 / (ndar.max() + eps))
    return ndar

dataset/ETHPy150Open dpkingma/nips14-ssl/anglepy/paramgraphics.py scale_to_unit_interval/VarMisuse@26/65 `ndar`->`eps`