

def scale_to_unit_interval(ndar, eps=1e-08):
    '\n    .. todo::\n\n        WRITEME\n    '
    ndar = ndar.copy()
    ndar -= ndar.min()
    ndar *= (1.0 / max(ndar.max(), eps))
    return ndar

dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/packaged_dependencies/theano_linear/imaging.py scale_to_unit_interval/original