mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Update the default value of FSRS-6 decay in forgetting curve (#4096)
Changed in 037345fd57
This commit is contained in:
parent
ba0d590c16
commit
bbf533b172
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