def _max_normalize()

in src/preprocess/preprocess.py [0:0]


    def _max_normalize(data, scale: float = None):
        if scale is None:
            scale = np.max(np.abs(data["target"]))
            scale = 1.0 if not scale else scale
        data["target"] /= scale
        return data, scale