mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Update the default value of FSRS-6 decay in forgetting curve
Changed in 037345fd57
This commit is contained in:
parent
44f3bbbbc9
commit
d243258844
1 changed files with 2 additions and 2 deletions
|
|
@ -22,12 +22,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
$: decay = (() => {
|
||||
const paramsLength = stats?.fsrsParams?.length ?? 0;
|
||||
if (paramsLength === 0) {
|
||||
return 0.2; // default decay for FSRS-6
|
||||
return 0.1542; // default decay for FSRS-6
|
||||
}
|
||||
if (paramsLength < 21) {
|
||||
return 0.5; // default decay for FSRS-4.5 and FSRS-5
|
||||
}
|
||||
return stats?.fsrsParams?.[20] ?? 0.2;
|
||||
return stats?.fsrsParams?.[20] ?? 0.1542;
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue