18 releases (5 breaking)

0.6.1 Apr 2, 2024
0.6.0 Mar 31, 2024
0.5.5 Mar 16, 2024
0.4.6 Mar 6, 2024
0.1.0 Jan 27, 2024

#84 in Machine learning

Download history 70/week @ 2024-01-27 67/week @ 2024-02-03 85/week @ 2024-02-10 75/week @ 2024-02-17 216/week @ 2024-02-24 751/week @ 2024-03-02 769/week @ 2024-03-09 288/week @ 2024-03-16 92/week @ 2024-03-23 3205/week @ 2024-03-30 1532/week @ 2024-04-06

5,152 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

~37–75MB
~1.5M SLoC