Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def guess_likelihood(score, guess, slip, learned):
if score == 1:
return calculate_correct(1, slip, learned)
if score == 0:
return calculate_incorrect(1, slip, learned)
def guess_normal(score, guess, slip, learned):
if score == 1:
return calculate_correct(guess, slip, learned)
if score == 0:
return calculate_incorrect(guess, slip, learned)
def slip_likelihood(score, guess, slip, learned):
if score == 1:
return calculate_correct(guess, 1, learned)
if score == 0:
return calculate_incorrect(guess, 1, learned)
def slip_normal(score, guess, slip, learned):
if score == 1:
return calculate_correct(guess, slip, learned)
if score == 0:
return calculate_incorrect(guess, slip, learned)