27 releases (6 stable)

new 1.1.3 Jul 25, 2024
0.6.4 May 16, 2024
0.6.0 Mar 31, 2024

#117 in Machine learning

Download history 1900/week @ 2024-04-05 2788/week @ 2024-04-12 2176/week @ 2024-04-19 3556/week @ 2024-04-26 2053/week @ 2024-05-03 1887/week @ 2024-05-10 1653/week @ 2024-05-17 3413/week @ 2024-05-24 2076/week @ 2024-05-31 4566/week @ 2024-06-07 2110/week @ 2024-06-14 1406/week @ 2024-06-21 2518/week @ 2024-06-28 1690/week @ 2024-07-05 1658/week @ 2024-07-12 1034/week @ 2024-07-19

7,079 downloads per month

BSD-3-Clause

170KB
4.5K SLoC

FSRS for Rust

crates.io

This crate contains a Rust API for training FSRS parameters, and for using them to schedule cards.

The Free Spaced Repetition Scheduler (FSRS) is a modern spaced repetition algorithm. It is based on the DSR model proposed by Piotr Wozniak, the creator of SuperMemo.

FSRS-rs is a Rust implementation of FSRS. It is designed to be used in Anki, a popular spaced repetition software. Anki 23.10 has already integrated FSRS as an alternative scheduler.

For more information about the algorithm, please refer to the wiki page of FSRS.


Development

add

#!/bin/sh
cargo fmt
cargo clippy -- -D warnings
git add .

to .git/hooks/pre-commit, then chmod +x .git/hooks/pre-commit

Dependencies

~38–76MB
~1.5M SLoC