-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/stability not restrict maximun and minimun #126
Fix/stability not restrict maximun and minimun #126
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #126 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 607 609 +2
Branches 64 64
=========================================
+ Hits 607 609 +2 ☔ View full report in Codecov by Sentry. |
Why |
I see that in model.rs of fsrs-rs there is a maximum limit of 36500.0. I am thinking that next_interval uses maximum_interval to limit the maximum number of days. Should stability also use maximum_interval to limit its maximum value? Or is it sufficient to just limit the minimum value? |
Let's consider such a case: the maximum_interval is 365 days, and the desired retention is 95%. When the stability is ~700 days, the corresponding interval is 365. If we restrict the stability to 365, the interval will never reach 365. |
OK, you're right, I hadn't considered that fully before. So, should I set the maximum for |
Yes, please do it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I referred to the code of
fsrs-rs
and found thatStability
is constrained by maximum and minimum values: https://github.com/open-spaced-repetition/fsrs-rs/blob/bc5d6024effc84b6743186fbdd23cbdf5bb0ec49/src/model.rs#L148-L151.