Skip to content

Commit

Permalink
update formula in simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed May 21, 2024
1 parent 7643e55 commit b534f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsrs_optimizer/fsrs_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def stability_after_failure(s, r, d):
)
card_table[col["stability"]][true_learn] = np.choose(first_ratings - 1, w[:4])
card_table[col["difficulty"]][true_learn] = np.clip(
w[4] - w[5] * (first_ratings - 3), 1, 10
w[4] - np.exp(w[5] * (first_ratings - 1)) + 1, 1, 10
)

card_table[col["ivl"]][true_review | true_learn] = np.clip(
Expand Down

0 comments on commit b534f26

Please sign in to comment.