21 releases (5 breaking)

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

#68 in Machine learning

Download history 65/week @ 2024-01-26 63/week @ 2024-02-02 86/week @ 2024-02-09 71/week @ 2024-02-16 132/week @ 2024-02-23 795/week @ 2024-03-01 786/week @ 2024-03-08 311/week @ 2024-03-15 92/week @ 2024-03-22 2865/week @ 2024-03-29 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 1489/week @ 2024-05-10

9,708 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