def _get_reward(old_error, new_error):
    """Return RL agent reward.

    Reward for RL agent is difference between new and previous error for output.
    Plus small amount for error (prioritize higher error)
    """
    return (old_error - new_error) + 0.2 * new_error