Pull in FSRS fix for pretrain
This commit is contained in:
parent
3e5458b3db
commit
b73c1c7f87
|
@ -1813,7 +1813,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "fsrs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=f45f46bdba6625f03677eaeb039dd8a6ffcad688#f45f46bdba6625f03677eaeb039dd8a6ffcad688"
|
||||
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=58ca25ed2bc4bb1dc376208bbcaed7f5a501b941#58ca25ed2bc4bb1dc376208bbcaed7f5a501b941"
|
||||
dependencies = [
|
||||
"burn",
|
||||
"itertools 0.12.0",
|
||||
|
|
|
@ -36,7 +36,7 @@ rev = "184b2ca50ed39ca43da13f0b830a463861adb9ca"
|
|||
|
||||
[workspace.dependencies.fsrs]
|
||||
git = "https://github.com/open-spaced-repetition/fsrs-rs.git"
|
||||
rev = "f45f46bdba6625f03677eaeb039dd8a6ffcad688"
|
||||
rev = "58ca25ed2bc4bb1dc376208bbcaed7f5a501b941"
|
||||
# path = "../../../fsrs-rs"
|
||||
|
||||
[workspace.dependencies]
|
||||
|
|
|
@ -341,7 +341,7 @@ mod tests {
|
|||
item.starting_state,
|
||||
Some(MemoryState {
|
||||
stability: 99.999954,
|
||||
difficulty: 4.966779,
|
||||
difficulty: 5.8158145
|
||||
})
|
||||
);
|
||||
let mut card = Card {
|
||||
|
@ -352,8 +352,8 @@ mod tests {
|
|||
assert_eq!(
|
||||
card.memory_state,
|
||||
Some(FsrsMemoryState {
|
||||
stability: 248.65475,
|
||||
difficulty: 4.9747725,
|
||||
stability: 248.65057,
|
||||
difficulty: 5.782729
|
||||
})
|
||||
);
|
||||
// but if there's only a single revlog entry, we'll fall back on current card
|
||||
|
@ -377,7 +377,7 @@ mod tests {
|
|||
card.memory_state,
|
||||
Some(FsrsMemoryState {
|
||||
stability: 122.99994,
|
||||
difficulty: 6.859577
|
||||
difficulty: 7.4459267
|
||||
})
|
||||
);
|
||||
Ok(())
|
||||
|
@ -401,7 +401,7 @@ mod tests {
|
|||
Some(
|
||||
MemoryState {
|
||||
stability: 99.999954,
|
||||
difficulty: 9.793356
|
||||
difficulty: 9.963163
|
||||
}
|
||||
.into()
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue