21 releases (5 breaking)

0.6.4 May 16, 2024
0.6.2 Apr 27, 2024
0.6.0 Mar 31, 2024

#118 in Machine learning

Download history 69/week @ 2024-02-05 79/week @ 2024-02-12 77/week @ 2024-02-19 387/week @ 2024-02-26 768/week @ 2024-03-04 767/week @ 2024-03-11 114/week @ 2024-03-18 291/week @ 2024-03-25 3597/week @ 2024-04-01 1545/week @ 2024-04-08 3368/week @ 2024-04-15 2434/week @ 2024-04-22 3052/week @ 2024-04-29 1726/week @ 2024-05-06 1977/week @ 2024-05-13 1862/week @ 2024-05-20

9,465 downloads per month

BSD-3-Clause

160KB
4K 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–74MB
~1.5M SLoC