Skip to content

More sensible FSRS progress indicator precision - #2684

Merged
dae merged 1 commit into
ankitects:mainfrom
meliache:lower-fsrs-progress-precision
Sep 26, 2023
Merged

dae merged 1 commit into
ankitects:mainfrom
meliache:lower-fsrs-progress-precision

Conversation

@meliache

@meliache meliache commented Sep 25, 2023 •

Copy link
Copy Markdown
Contributor

Its very helpful having a sub-permille precision in a progress indicator, percent-precision or at most a tenth of a percent should be sufficient for any indicator.

But in particular the compute-retention progress has 10 steps, i.e. the progress increases in 10%-intervals (10%, 20%, ...), it cannot have sub-decimal progress-percentages, see the fsrs-rs optimal_retention function. So there integer percents should be enough, everything else is misleading.

The compute-weights progress is currently (as of beta-2) not showing up at all. Maybe if the bug is fixed it can show sub-percent percentages, so for know I changed that to 0.1% precision. But I think integer percentages should be fine here as well, so upon request I can fix that.

Before:

After:
image

Also see my comment on this issue in the beta forum thread.

@meliache
meliache force-pushed the lower-fsrs-progress-precision branch from 3e9922c to 624adc8 Compare September 25, 2023 14:51
It's very helpful having a sub-permille precision in a progress
indicator, percent-precision or at most a tenth of a percent should be
sufficient for any indicator.

But in particular the compute-retention progress has 10 steps, i.e. the progress
increases in 10%-intervals (10%, 20%, ...), it *cannot* have sub-decimal
progress-percentages, see https://github.com/open-spaced-repetition/fsrs-rs/blob/2d5b19b4941599b1fbc7a49dbbe89774f975e4ed/src/optimal_retention.rs#L365-L368. So there integer percents should be
enough, everything else is misleading.

The compute-weights progress is currently (as of beta-2) not showing up at all.
Maybe if the bug is fixed it can show sub-percent percentages, so for know I changed that
to 0.1% precision. But I think integer percentages should be fine here as well,
so upon request I can fix that.

Also see my comment on this problem in https://forums.ankiweb.net/t/anki-23-10-beta/34912/39.
@meliache
meliache force-pushed the lower-fsrs-progress-precision branch from 624adc8 to 94bd130 Compare September 25, 2023 14:54
@meliache meliache changed the title More sensible lower FSRS progress indicator precision More sensible FSRS progress indicator precision Sep 25, 2023
@dae

dae commented Sep 26, 2023

Copy link
Copy Markdown
Member

Looks good - thanks!

@dae
dae merged commit 2491b93 into ankitects:main Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants