mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Update FSRS for new default weights
This commit is contained in:
parent
f10a29a93d
commit
cfc6bc6548
3 changed files with 7 additions and 7 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1813,7 +1813,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fsrs"
|
name = "fsrs"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=34570f396c86df857dd149921b9ed91c37993321#34570f396c86df857dd149921b9ed91c37993321"
|
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=6e5ff8826c507d2f4323f2d73dda785b45f450b4#6e5ff8826c507d2f4323f2d73dda785b45f450b4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"burn",
|
"burn",
|
||||||
"itertools 0.12.0",
|
"itertools 0.12.0",
|
||||||
|
|
|
@ -36,7 +36,7 @@ rev = "184b2ca50ed39ca43da13f0b830a463861adb9ca"
|
||||||
|
|
||||||
[workspace.dependencies.fsrs]
|
[workspace.dependencies.fsrs]
|
||||||
git = "https://github.com/open-spaced-repetition/fsrs-rs.git"
|
git = "https://github.com/open-spaced-repetition/fsrs-rs.git"
|
||||||
rev = "34570f396c86df857dd149921b9ed91c37993321"
|
rev = "6e5ff8826c507d2f4323f2d73dda785b45f450b4"
|
||||||
# path = "../../../fsrs-rs"
|
# path = "../../../fsrs-rs"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
|
|
|
@ -342,7 +342,7 @@ mod tests {
|
||||||
item.starting_state,
|
item.starting_state,
|
||||||
Some(MemoryState {
|
Some(MemoryState {
|
||||||
stability: 99.999954,
|
stability: 99.999954,
|
||||||
difficulty: 4.46429
|
difficulty: 5.287041,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
let mut card = Card {
|
let mut card = Card {
|
||||||
|
@ -353,8 +353,8 @@ mod tests {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
card.memory_state,
|
card.memory_state,
|
||||||
Some(FsrsMemoryState {
|
Some(FsrsMemoryState {
|
||||||
stability: 248.58453,
|
stability: 248.5813,
|
||||||
difficulty: 4.4689474
|
difficulty: 5.2646275,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
// but if there's only a single revlog entry, we'll fall back on current card
|
// but if there's only a single revlog entry, we'll fall back on current card
|
||||||
|
@ -378,7 +378,7 @@ mod tests {
|
||||||
card.memory_state,
|
card.memory_state,
|
||||||
Some(FsrsMemoryState {
|
Some(FsrsMemoryState {
|
||||||
stability: 122.99994,
|
stability: 122.99994,
|
||||||
difficulty: 6.5147333
|
difficulty: 7.0797696
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -402,7 +402,7 @@ mod tests {
|
||||||
Some(
|
Some(
|
||||||
MemoryState {
|
MemoryState {
|
||||||
stability: 99.999954,
|
stability: 99.999954,
|
||||||
difficulty: 9.692858
|
difficulty: 9.857409
|
||||||
}
|
}
|
||||||
.into()
|
.into()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue