def create_mae_rescaled(scale_factor):
    """Create a callback function which tracks mae rescaled
    Arguments:
        scale_factor: Scaling factor with which the labels were scaled initially
    """

    def mae_rescaled(y_true, y_pred):
        difference = abs(y_pred - y_true)
        return difference / scale_factor

    return mae_rescaled