def update_learned(score, learned, guess, slip, transit,
                   time_delta):
    """
    Given a learner response,
    determines how likely the learner knows the skill.
    """

    learned *= calculate_belief(learned, time_delta)
    posterior = (score
                 * learned
                 * calculate_correct(guess, slip, 1)
                 / calculate_correct(guess, slip, learned)
                 + (1 - score)
                 * learned
                 * calculate_incorrect(guess, slip, 1)
                 / calculate_incorrect(guess, slip, learned))
    return posterior + (posterior - 1) * transit
dataset/ETHPy150Open heiskr/sagefy/server/modules/sequencer/formulas.py/update_learned/swapped operands of `-`