update fsrs to 0.4.4 (#3045)

* update fsrs to 0.4.4

* fix bypassed_learning_is_handled
This commit is contained in:
Jarrett Ye 2024-03-03 15:30:34 +08:00 committed by GitHub
parent b2df6546aa
commit c7556f17e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 134 additions and 170 deletions

178
Cargo.lock generated
View file

@ -150,7 +150,7 @@ dependencies = [
"serde_repr", "serde_repr",
"serde_tuple", "serde_tuple",
"sha1", "sha1",
"snafu 0.8.1", "snafu",
"strum 0.26.1", "strum 0.26.1",
"syn 2.0.51", "syn 2.0.51",
"tempfile", "tempfile",
@ -201,7 +201,7 @@ name = "anki_io"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"camino", "camino",
"snafu 0.8.1", "snafu",
"tempfile", "tempfile",
] ]
@ -210,7 +210,7 @@ name = "anki_process"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"itertools 0.12.1", "itertools 0.12.1",
"snafu 0.8.1", "snafu",
] ]
[[package]] [[package]]
@ -227,7 +227,7 @@ dependencies = [
"prost-reflect", "prost-reflect",
"prost-types", "prost-types",
"serde", "serde",
"snafu 0.8.1", "snafu",
"strum 0.26.1", "strum 0.26.1",
] ]
@ -614,9 +614,9 @@ checksum = "8ea184aa71bb362a1157c896979544cc23974e08fd265f29ea96b59f0b4a555b"
[[package]] [[package]]
name = "burn" name = "burn"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5008368c07b8ffc5c8bde2ebf31b59bdd263fdd825152bd0a9d333a220ba44f" checksum = "b6b703e5dae87b2146649b64af54688ff86e16cf69fd19d28c43c8f9656d7d7c"
dependencies = [ dependencies = [
"burn-core", "burn-core",
"burn-train", "burn-train",
@ -624,22 +624,21 @@ dependencies = [
[[package]] [[package]]
name = "burn-autodiff" name = "burn-autodiff"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "176a12ffd413ba2bfafa2b4ed1e2a21d7880b67a1ac3a9bb4919c9c0f102cdd7" checksum = "f306e1b2e480fa0960c3130a68ca5e0fa54b3e33ed2fda7cf2121434703dd771"
dependencies = [ dependencies = [
"burn-common", "burn-common",
"burn-tensor", "burn-tensor",
"burn-tensor-testgen",
"derive-new", "derive-new",
"spin 0.9.8", "spin 0.9.8",
] ]
[[package]] [[package]]
name = "burn-candle" name = "burn-candle"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce2556eb085f2ef1cd8d0d6d932f8a64f529c5d0487ea7e4a868fe6a65e3d892" checksum = "fc87b644a2d83cc1b7c05d1176e9e24fb6394272256ab9ab8324ff7c4fe0e6a0"
dependencies = [ dependencies = [
"burn-tensor", "burn-tensor",
"candle-core", "candle-core",
@ -649,36 +648,43 @@ dependencies = [
[[package]] [[package]]
name = "burn-common" name = "burn-common"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7dcb7947986d5420a9126959a5f16675f2d7b822bacc60a966fcfcf5a7dbd247" checksum = "1267068969f094323b62693df0c3b45d3b08a0568f3c3467e6a5c3207e6807c8"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"derive-new", "derive-new",
"getrandom 0.2.12", "getrandom 0.2.12",
"rand 0.8.5", "rand 0.8.5",
"serde",
"spin 0.9.8", "spin 0.9.8",
"uuid", "uuid",
"web-time",
] ]
[[package]] [[package]]
name = "burn-compute" name = "burn-compute"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08dfd31ce4d27c64358991c23a26d8aaa2d9cb0f8517c7e79d01f2fe8d6c1eb0" checksum = "a1b51588cf7c84976f6241a9ac5f77857712b8bf443dab77296c260785033fe8"
dependencies = [ dependencies = [
"burn-common", "burn-common",
"derive-new", "derive-new",
"dirs",
"hashbrown 0.14.3", "hashbrown 0.14.3",
"log", "log",
"md5",
"serde",
"serde_json",
"spin 0.9.8", "spin 0.9.8",
"web-time",
] ]
[[package]] [[package]]
name = "burn-core" name = "burn-core"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2067024ff50b21e29e6835a7cc8189046024fc7c174f1d2d635a4955c5151fe5" checksum = "6b11d8fd1e8c656eee1a0bb503b798c4583904dcaf7a369cbb8fdfd3acc3d0ab"
dependencies = [ dependencies = [
"bincode", "bincode",
"burn-autodiff", "burn-autodiff",
@ -706,9 +712,9 @@ dependencies = [
[[package]] [[package]]
name = "burn-dataset" name = "burn-dataset"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9f3481ac13ad69279d4922cf17866aa99841b76db49d9a7915a7521d772a345" checksum = "c6050891281ae38ee9dc24d1d5badd084247717b15e3dcdae562a81456a41c6e"
dependencies = [ dependencies = [
"csv", "csv",
"derive-new", "derive-new",
@ -732,9 +738,9 @@ dependencies = [
[[package]] [[package]]
name = "burn-derive" name = "burn-derive"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d44415ff69a525b49272a5ed893655441834f9ee6cac3ffe2b2387326042d8fc" checksum = "70f149de5f32baa3f2191c374edab71e5a323bade05eb6092c702aed76cdcb7b"
dependencies = [ dependencies = [
"derive-new", "derive-new",
"proc-macro2", "proc-macro2",
@ -744,22 +750,24 @@ dependencies = [
[[package]] [[package]]
name = "burn-fusion" name = "burn-fusion"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "821663ff1f79865d6b0e998230683f72ff4351608770c07f91e39953e89fbec6" checksum = "f512f780beaefca46088c4e4a80595511fbc3b35545118281fbf49f1fca767b4"
dependencies = [ dependencies = [
"burn-common", "burn-common",
"burn-tensor", "burn-tensor",
"derive-new", "derive-new",
"hashbrown 0.14.3", "hashbrown 0.14.3",
"log",
"serde",
"spin 0.9.8", "spin 0.9.8",
] ]
[[package]] [[package]]
name = "burn-ndarray" name = "burn-ndarray"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0448005c7ed6f1636ca0e12a148613fdd4d5739e1db8b241c7940140098f4fe3" checksum = "1aef9fb0b72a1c0a112ed51e35284fb663d3ba3fd98f3a3bfa32db39fd24ae4d"
dependencies = [ dependencies = [
"burn-autodiff", "burn-autodiff",
"burn-common", "burn-common",
@ -776,9 +784,9 @@ dependencies = [
[[package]] [[package]]
name = "burn-tch" name = "burn-tch"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "197d7276dd95abe3872fdbdfedd091730700aef7d83542ecc9d20a015791d968" checksum = "e3d7aec36d836c5a11714480089738120899e2c91f6fe2e23abd09ec4a68a803"
dependencies = [ dependencies = [
"burn-tensor", "burn-tensor",
"half", "half",
@ -789,12 +797,11 @@ dependencies = [
[[package]] [[package]]
name = "burn-tensor" name = "burn-tensor"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60f8cf3d9588047b7d221c718b7208b829fdd1050150a69d069b66e1bb6e6cbb" checksum = "ad09aeb0f2428a4ee91f9876a7d71cef6feb1fcacdab6389362dd878ec5f9b27"
dependencies = [ dependencies = [
"burn-common", "burn-common",
"burn-tensor-testgen",
"derive-new", "derive-new",
"half", "half",
"hashbrown 0.14.3", "hashbrown 0.14.3",
@ -805,21 +812,11 @@ dependencies = [
"serde", "serde",
] ]
[[package]]
name = "burn-tensor-testgen"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a555a79ab0ab974e61aee15e62e87576ca47e7df768f68145754527d31633f87"
dependencies = [
"proc-macro2",
"quote",
]
[[package]] [[package]]
name = "burn-train" name = "burn-train"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb7defef4e44f0780d25c0aaf4d55efc96fb726b3f5d60902da682a59692359d" checksum = "dd5536e98b23dd5047728f288e61e8a4d9fbffef6f55086d3483c2464758508d"
dependencies = [ dependencies = [
"burn-core", "burn-core",
"derive-new", "derive-new",
@ -832,9 +829,9 @@ dependencies = [
[[package]] [[package]]
name = "burn-wgpu" name = "burn-wgpu"
version = "0.11.1" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8676fa583cfa91db6f2ed26d8e42197fd378c15ed1e8a62c07286cb88f1971ec" checksum = "231d2deb14a02838c29dd5e90d1a87a9578d76bda7b02d5c7a77e5440ef6ae95"
dependencies = [ dependencies = [
"burn-common", "burn-common",
"burn-compute", "burn-compute",
@ -1363,13 +1360,13 @@ dependencies = [
[[package]] [[package]]
name = "derive-new" name = "derive-new"
version = "0.5.9" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3418329ca0ad70234b9735dc4ceed10af4df60eff9c8e7b06cb5e520d92c3535" checksum = "d150dea618e920167e5973d70ae6ece4385b7164e0d799fe7c122dd0a5d912ad"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
"syn 1.0.109", "syn 2.0.51",
] ]
[[package]] [[package]]
@ -1430,12 +1427,6 @@ dependencies = [
"syn 2.0.51", "syn 2.0.51",
] ]
[[package]]
name = "doc-comment"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
[[package]] [[package]]
name = "duct" name = "duct"
version = "0.13.7" version = "0.13.7"
@ -1587,9 +1578,9 @@ checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a"
[[package]] [[package]]
name = "faster-hex" name = "faster-hex"
version = "0.8.1" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "239f7bfb930f820ab16a9cd95afc26f88264cf6905c960b340a615384aa3338a" checksum = "a2a2b11eda1d40935b26cf18f6833c526845ae8c41e58d09af6adeb6f0269183"
dependencies = [ dependencies = [
"serde", "serde",
] ]
@ -1801,9 +1792,9 @@ dependencies = [
[[package]] [[package]]
name = "fsrs" name = "fsrs"
version = "0.3.0" version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eece5d2325704da8667c3a796e64a3c0b046100ff758ba88f91d0dee80d6deb9" checksum = "5e5210280b424b4b47187c7af3935fcd13aca73afec897675b860b0c6e133bab"
dependencies = [ dependencies = [
"burn", "burn",
"itertools 0.12.1", "itertools 0.12.1",
@ -1813,8 +1804,8 @@ dependencies = [
"rand 0.8.5", "rand 0.8.5",
"rayon", "rayon",
"serde", "serde",
"snafu 0.7.5", "snafu",
"strum 0.25.0", "strum 0.26.1",
] ]
[[package]] [[package]]
@ -1831,7 +1822,7 @@ dependencies = [
"lazy_static", "lazy_static",
"regex", "regex",
"serde_json", "serde_json",
"snafu 0.8.1", "snafu",
"walkdir", "walkdir",
] ]
@ -2145,9 +2136,9 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253"
[[package]] [[package]]
name = "gix-features" name = "gix-features"
version = "0.33.0" version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f77decb545f63a52852578ef5f66ecd71017ffc1983d551d5fa2328d6d9817f" checksum = "4d46a4a5c6bb5bebec9c0d18b65ada20e6517dbd7cf855b87dd4bbdce3a771b2"
dependencies = [ dependencies = [
"gix-hash", "gix-hash",
"gix-trace", "gix-trace",
@ -2156,18 +2147,18 @@ dependencies = [
[[package]] [[package]]
name = "gix-fs" name = "gix-fs"
version = "0.5.0" version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d5089f3338647776733a75a800a664ab046f56f21c515fa4722e395f877ef8" checksum = "20e86eb040f5776a5ade092282e51cdcad398adb77d948b88d17583c2ae4e107"
dependencies = [ dependencies = [
"gix-features", "gix-features",
] ]
[[package]] [[package]]
name = "gix-hash" name = "gix-hash"
version = "0.12.0" version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d4796bac3aaf0c2f8bea152ca924ae3bdc5f135caefe6431116bcd67e98eab9" checksum = "1f8cf8c2266f63e582b7eb206799b63aa5fa68ee510ad349f637dfe2d0653de0"
dependencies = [ dependencies = [
"faster-hex", "faster-hex",
"thiserror", "thiserror",
@ -2175,9 +2166,9 @@ dependencies = [
[[package]] [[package]]
name = "gix-tempfile" name = "gix-tempfile"
version = "8.0.0" version = "11.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cea558d3daf3b1d0001052b12218c66c8f84788852791333b633d7eeb6999db1" checksum = "388dd29114a86ec69b28d1e26d6d63a662300ecf61ab3f4cc578f7d7dc9e7e23"
dependencies = [ dependencies = [
"dashmap", "dashmap",
"gix-fs", "gix-fs",
@ -3136,6 +3127,12 @@ dependencies = [
"thread-tree", "thread-tree",
] ]
[[package]]
name = "md5"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771"
[[package]] [[package]]
name = "mdbook" name = "mdbook"
version = "0.4.37" version = "0.4.37"
@ -5128,35 +5125,13 @@ version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7"
[[package]]
name = "snafu"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4de37ad025c587a29e8f3f5605c00f70b98715ef90b9061a815b9e59e9042d6"
dependencies = [
"doc-comment",
"snafu-derive 0.7.5",
]
[[package]] [[package]]
name = "snafu" name = "snafu"
version = "0.8.1" version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ed22871b3fe6eff9f1b48f6cbd54149ff8e9acd740dea9146092435f9c43bd3" checksum = "5ed22871b3fe6eff9f1b48f6cbd54149ff8e9acd740dea9146092435f9c43bd3"
dependencies = [ dependencies = [
"snafu-derive 0.8.1", "snafu-derive",
]
[[package]]
name = "snafu-derive"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "990079665f075b699031e9c08fd3ab99be5029b96f3b78dc0709e8f77e4efebf"
dependencies = [
"heck",
"proc-macro2",
"quote",
"syn 1.0.109",
] ]
[[package]] [[package]]
@ -5261,9 +5236,6 @@ name = "strum"
version = "0.25.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125"
dependencies = [
"strum_macros 0.25.3",
]
[[package]] [[package]]
name = "strum" name = "strum"
@ -5399,9 +5371,9 @@ checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f"
[[package]] [[package]]
name = "tch" name = "tch"
version = "0.14.0" version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ed5dddab3812892bf5fb567136e372ea49f31672931e21cec967ca68aec03da" checksum = "7c7cb00bc2770454b515388d45be7097a3ded2eca172f3dcdb7ca4cc06c40bf1"
dependencies = [ dependencies = [
"half", "half",
"lazy_static", "lazy_static",
@ -5714,9 +5686,9 @@ checksum = "ea68304e134ecd095ac6c3574494fc62b909f416c4fca77e440530221e549d3d"
[[package]] [[package]]
name = "torch-sys" name = "torch-sys"
version = "0.14.0" version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "803446f89fb877a117503dbfb8375b6a29fa8b0e0f44810fac3863c798ecef22" checksum = "29e0244e5b148a31dd7fe961165037d1927754d024095c1013937532d7e73a22"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"cc", "cc",
@ -6343,6 +6315,16 @@ dependencies = [
"wasm-bindgen", "wasm-bindgen",
] ]
[[package]]
name = "web-time"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]] [[package]]
name = "webpki-roots" name = "webpki-roots"
version = "0.25.4" version = "0.25.4"

View file

@ -35,7 +35,7 @@ git = "https://github.com/ankitects/linkcheck.git"
rev = "184b2ca50ed39ca43da13f0b830a463861adb9ca" rev = "184b2ca50ed39ca43da13f0b830a463861adb9ca"
[workspace.dependencies.fsrs] [workspace.dependencies.fsrs]
version = "0.3.0" version = "0.4.4"
# git = "https://github.com/open-spaced-repetition/fsrs-rs.git" # git = "https://github.com/open-spaced-repetition/fsrs-rs.git"
# rev = "58ca25ed2bc4bb1dc376208bbcaed7f5a501b941" # rev = "58ca25ed2bc4bb1dc376208bbcaed7f5a501b941"
# path = "../../../fsrs-rs" # path = "../../../fsrs-rs"

View file

@ -397,7 +397,7 @@
}, },
{ {
"name": "burn", "name": "burn",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn", "repository": "https://github.com/tracel-ai/burn",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -406,7 +406,7 @@
}, },
{ {
"name": "burn-autodiff", "name": "burn-autodiff",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-autodiff", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-autodiff",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -415,7 +415,7 @@
}, },
{ {
"name": "burn-candle", "name": "burn-candle",
"version": "0.11.1", "version": "0.12.1",
"authors": "louisfd <louisfd94@gmail.com>", "authors": "louisfd <louisfd94@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-candle", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-candle",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -424,7 +424,7 @@
}, },
{ {
"name": "burn-common", "name": "burn-common",
"version": "0.11.1", "version": "0.12.1",
"authors": "Dilshod Tadjibaev (@antimora)", "authors": "Dilshod Tadjibaev (@antimora)",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-common", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-common",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -433,7 +433,7 @@
}, },
{ {
"name": "burn-compute", "name": "burn-compute",
"version": "0.11.1", "version": "0.12.1",
"authors": "louisfd <louisfd94@gmail.com>|Nathaniel Simard", "authors": "louisfd <louisfd94@gmail.com>|Nathaniel Simard",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-compute", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-compute",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -442,7 +442,7 @@
}, },
{ {
"name": "burn-core", "name": "burn-core",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-core", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-core",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -451,7 +451,7 @@
}, },
{ {
"name": "burn-dataset", "name": "burn-dataset",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-dataset", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-dataset",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -460,7 +460,7 @@
}, },
{ {
"name": "burn-derive", "name": "burn-derive",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-derive", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-derive",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -469,7 +469,7 @@
}, },
{ {
"name": "burn-fusion", "name": "burn-fusion",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-fusion", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-fusion",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -478,7 +478,7 @@
}, },
{ {
"name": "burn-ndarray", "name": "burn-ndarray",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-ndarray", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-ndarray",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -487,34 +487,25 @@
}, },
{ {
"name": "burn-tch", "name": "burn-tch",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-tch", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-tch",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
"license_file": null, "license_file": null,
"description": "Tch backend for the Burn framework" "description": "LibTorch backend for the Burn framework using the tch bindings."
}, },
{ {
"name": "burn-tensor", "name": "burn-tensor",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-tensor", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-tensor",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
"license_file": null, "license_file": null,
"description": "Tensor library with user-friendly APIs and automatic differentiation support" "description": "Tensor library with user-friendly APIs and automatic differentiation support"
}, },
{
"name": "burn-tensor-testgen",
"version": "0.11.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-tensor-testgen",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "Test generation crate for burn-tensor"
},
{ {
"name": "burn-train", "name": "burn-train",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-train", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-train",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -523,7 +514,7 @@
}, },
{ {
"name": "burn-wgpu", "name": "burn-wgpu",
"version": "0.11.1", "version": "0.12.1",
"authors": "nathanielsimard <nathaniel.simard.42@gmail.com>", "authors": "nathanielsimard <nathaniel.simard.42@gmail.com>",
"repository": "https://github.com/tracel-ai/burn/tree/main/burn-wgpu", "repository": "https://github.com/tracel-ai/burn/tree/main/burn-wgpu",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -883,8 +874,8 @@
}, },
{ {
"name": "derive-new", "name": "derive-new",
"version": "0.5.9", "version": "0.6.0",
"authors": "Nick Cameron <ncameron@mozilla.com>", "authors": "Nick Cameron <nrc@ncameron.org>",
"repository": "https://github.com/nrc/derive-new", "repository": "https://github.com/nrc/derive-new",
"license": "MIT", "license": "MIT",
"license_file": null, "license_file": null,
@ -935,15 +926,6 @@
"license_file": null, "license_file": null,
"description": "A derive macro for implementing the display Trait via a doc comment and string interpolation" "description": "A derive macro for implementing the display Trait via a doc comment and string interpolation"
}, },
{
"name": "doc-comment",
"version": "0.3.3",
"authors": "Guillaume Gomez <guillaume1.gomez@gmail.com>",
"repository": "https://github.com/GuillaumeGomez/doc-comment",
"license": "MIT",
"license_file": null,
"description": "Macro to generate doc comments"
},
{ {
"name": "dyn-stack", "name": "dyn-stack",
"version": "0.10.0", "version": "0.10.0",
@ -1045,7 +1027,7 @@
}, },
{ {
"name": "faster-hex", "name": "faster-hex",
"version": "0.8.1", "version": "0.9.0",
"authors": "zhangsoledad <787953403@qq.com>", "authors": "zhangsoledad <787953403@qq.com>",
"repository": "https://github.com/NervosFoundation/faster-hex", "repository": "https://github.com/NervosFoundation/faster-hex",
"license": "MIT", "license": "MIT",
@ -1216,7 +1198,7 @@
}, },
{ {
"name": "fsrs", "name": "fsrs",
"version": "0.3.0", "version": "0.4.4",
"authors": "Open Spaced Repetition", "authors": "Open Spaced Repetition",
"repository": "https://github.com/open-spaced-repetition/fsrs-rs", "repository": "https://github.com/open-spaced-repetition/fsrs-rs",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
@ -1459,7 +1441,7 @@
}, },
{ {
"name": "gix-features", "name": "gix-features",
"version": "0.33.0", "version": "0.36.1",
"authors": "Sebastian Thiel <sebastian.thiel@icloud.com>", "authors": "Sebastian Thiel <sebastian.thiel@icloud.com>",
"repository": "https://github.com/Byron/gitoxide", "repository": "https://github.com/Byron/gitoxide",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -1468,7 +1450,7 @@
}, },
{ {
"name": "gix-fs", "name": "gix-fs",
"version": "0.5.0", "version": "0.8.1",
"authors": "Sebastian Thiel <sebastian.thiel@icloud.com>", "authors": "Sebastian Thiel <sebastian.thiel@icloud.com>",
"repository": "https://github.com/Byron/gitoxide", "repository": "https://github.com/Byron/gitoxide",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -1477,7 +1459,7 @@
}, },
{ {
"name": "gix-hash", "name": "gix-hash",
"version": "0.12.0", "version": "0.13.3",
"authors": "Sebastian Thiel <sebastian.thiel@icloud.com>", "authors": "Sebastian Thiel <sebastian.thiel@icloud.com>",
"repository": "https://github.com/Byron/gitoxide", "repository": "https://github.com/Byron/gitoxide",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -1486,7 +1468,7 @@
}, },
{ {
"name": "gix-tempfile", "name": "gix-tempfile",
"version": "8.0.0", "version": "11.0.1",
"authors": "Sebastian Thiel <sebastian.thiel@icloud.com>", "authors": "Sebastian Thiel <sebastian.thiel@icloud.com>",
"repository": "https://github.com/Byron/gitoxide", "repository": "https://github.com/Byron/gitoxide",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -2150,6 +2132,15 @@
"license_file": null, "license_file": null,
"description": "General matrix multiplication for f32 and f64 matrices. Operates on matrices with general layout (they can use arbitrary row and column stride). Detects and uses AVX or SSE2 on x86 platforms transparently for higher performance. Uses a microkernel strategy, so that the implementation is easy to parallelize and optimize. Supports multithreading." "description": "General matrix multiplication for f32 and f64 matrices. Operates on matrices with general layout (they can use arbitrary row and column stride). Detects and uses AVX or SSE2 on x86 platforms transparently for higher performance. Uses a microkernel strategy, so that the implementation is easy to parallelize and optimize. Supports multithreading."
}, },
{
"name": "md5",
"version": "0.7.0",
"authors": "Ivan Ukhov <ivan.ukhov@gmail.com>|Kamal Ahmad <shibe@openmailbox.org>|Konstantin Stepanov <milezv@gmail.com>|Lukas Kalbertodt <lukas.kalbertodt@gmail.com>|Nathan Musoke <nathan.musoke@gmail.com>|Scott Mabin <scott@mabez.dev>|Tony Arcieri <bascule@gmail.com>|Wim de With <register@dewith.io>|Yosef Dinerstein <yosefdi@gmail.com>",
"repository": "https://github.com/stainless-steel/md5",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "The package provides the MD5 hash function."
},
{ {
"name": "memchr", "name": "memchr",
"version": "2.7.1", "version": "2.7.1",
@ -3554,15 +3545,6 @@
"license_file": null, "license_file": null,
"description": "'Small vector' optimization: store up to a small number of items on the stack" "description": "'Small vector' optimization: store up to a small number of items on the stack"
}, },
{
"name": "snafu",
"version": "0.7.5",
"authors": "Jake Goulding <jake.goulding@gmail.com>",
"repository": "https://github.com/shepmaster/snafu",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "An ergonomic error handling library"
},
{ {
"name": "snafu", "name": "snafu",
"version": "0.8.1", "version": "0.8.1",
@ -3572,15 +3554,6 @@
"license_file": null, "license_file": null,
"description": "An ergonomic error handling library" "description": "An ergonomic error handling library"
}, },
{
"name": "snafu-derive",
"version": "0.7.5",
"authors": "Jake Goulding <jake.goulding@gmail.com>",
"repository": "https://github.com/shepmaster/snafu",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "An ergonomic error handling library"
},
{ {
"name": "snafu-derive", "name": "snafu-derive",
"version": "0.8.1", "version": "0.8.1",
@ -3772,7 +3745,7 @@
}, },
{ {
"name": "tch", "name": "tch",
"version": "0.14.0", "version": "0.15.0",
"authors": "Laurent Mazare <lmazare@gmail.com>", "authors": "Laurent Mazare <lmazare@gmail.com>",
"repository": "https://github.com/LaurentMazare/tch-rs", "repository": "https://github.com/LaurentMazare/tch-rs",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -3988,7 +3961,7 @@
}, },
{ {
"name": "torch-sys", "name": "torch-sys",
"version": "0.14.0", "version": "0.15.0",
"authors": "Laurent Mazare <lmazare@gmail.com>", "authors": "Laurent Mazare <lmazare@gmail.com>",
"repository": "https://github.com/LaurentMazare/tch-rs", "repository": "https://github.com/LaurentMazare/tch-rs",
"license": "Apache-2.0 OR MIT", "license": "Apache-2.0 OR MIT",
@ -4463,6 +4436,15 @@
"license_file": null, "license_file": null,
"description": "Bindings for all Web APIs, a procedurally generated crate from WebIDL" "description": "Bindings for all Web APIs, a procedurally generated crate from WebIDL"
}, },
{
"name": "web-time",
"version": "1.1.0",
"authors": null,
"repository": "https://github.com/daxpedda/web-time",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "Drop-in replacement for std::time for Wasm in browsers"
},
{ {
"name": "webpki-roots", "name": "webpki-roots",
"version": "0.25.4", "version": "0.25.4",

View file

@ -12,7 +12,7 @@ use anki_proto::deck_config::deck_configs_for_update::ConfigWithExtra;
use anki_proto::deck_config::deck_configs_for_update::CurrentDeck; use anki_proto::deck_config::deck_configs_for_update::CurrentDeck;
use anki_proto::deck_config::UpdateDeckConfigsMode; use anki_proto::deck_config::UpdateDeckConfigsMode;
use anki_proto::decks::deck::normal::DayLimit; use anki_proto::decks::deck::normal::DayLimit;
use fsrs::DEFAULT_WEIGHTS; use fsrs::DEFAULT_PARAMETERS;
use crate::config::StringKey; use crate::config::StringKey;
use crate::decks::NormalDeck; use crate::decks::NormalDeck;
@ -46,7 +46,7 @@ impl Collection {
deck: DeckId, deck: DeckId,
) -> Result<anki_proto::deck_config::DeckConfigsForUpdate> { ) -> Result<anki_proto::deck_config::DeckConfigsForUpdate> {
let mut defaults = DeckConfig::default(); let mut defaults = DeckConfig::default();
defaults.inner.fsrs_weights = DEFAULT_WEIGHTS.into(); defaults.inner.fsrs_weights = DEFAULT_PARAMETERS.into();
Ok(anki_proto::deck_config::DeckConfigsForUpdate { Ok(anki_proto::deck_config::DeckConfigsForUpdate {
all_config: self.get_deck_config_with_extra_for_update()?, all_config: self.get_deck_config_with_extra_for_update()?,
current_deck: Some(self.get_current_deck_for_update(deck)?), current_deck: Some(self.get_current_deck_for_update(deck)?),

View file

@ -12,7 +12,7 @@ impl From<FSRSError> for AnkiError {
FSRSError::NotEnoughData => AnkiError::FsrsInsufficientData, FSRSError::NotEnoughData => AnkiError::FsrsInsufficientData,
FSRSError::OptimalNotFound => AnkiError::FsrsUnableToDetermineDesiredRetention, FSRSError::OptimalNotFound => AnkiError::FsrsUnableToDetermineDesiredRetention,
FSRSError::Interrupted => AnkiError::Interrupted, FSRSError::Interrupted => AnkiError::Interrupted,
FSRSError::InvalidWeights => AnkiError::FsrsWeightsInvalid, FSRSError::InvalidParameters => AnkiError::FsrsWeightsInvalid,
FSRSError::InvalidInput => AnkiError::InvalidInput { FSRSError::InvalidInput => AnkiError::InvalidInput {
source: InvalidInputError { source: InvalidInputError {
message: "invalid weights provided".to_string(), message: "invalid weights provided".to_string(),

View file

@ -374,7 +374,7 @@ mod tests {
item.starting_state.map(Into::into), item.starting_state.map(Into::into),
Some(FsrsMemoryState { Some(FsrsMemoryState {
stability: 99.999954, stability: 99.999954,
difficulty: 5.8158145, difficulty: 5.899495,
}), }),
); );
let mut card = Card { let mut card = Card {
@ -385,8 +385,8 @@ mod tests {
assert_int_eq( assert_int_eq(
card.memory_state, card.memory_state,
Some(FsrsMemoryState { Some(FsrsMemoryState {
stability: 248.65057, stability: 248.64981,
difficulty: 5.782729, difficulty: 5.872157,
}), }),
); );
// 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
@ -411,7 +411,7 @@ mod tests {
card.memory_state, card.memory_state,
Some(FsrsMemoryState { Some(FsrsMemoryState {
stability: 122.99994, stability: 122.99994,
difficulty: 7.4459267, difficulty: 7.5038733,
}), }),
); );
Ok(()) Ok(())
@ -435,7 +435,7 @@ mod tests {
Some( Some(
MemoryState { MemoryState {
stability: 99.999954, stability: 99.999954,
difficulty: 9.963163, difficulty: 9.979899,
} }
.into(), .into(),
), ),

View file

@ -94,7 +94,7 @@ impl Collection {
}); });
let fsrs = FSRS::new(Some(current_weights))?; let fsrs = FSRS::new(Some(current_weights))?;
let mut weights = let mut weights =
fsrs.compute_weights(items.clone(), revlogs.len() < 1000, Some(progress2))?; fsrs.compute_parameters(items.clone(), revlogs.len() < 1000, Some(progress2))?;
let metrics = fsrs.universal_metrics(items, &weights, |_| true)?; let metrics = fsrs.universal_metrics(items, &weights, |_| true)?;
if metrics.0 < metrics.1 { if metrics.0 < metrics.1 {
weights = current_weights.to_vec(); weights = current_weights.to_vec();

View file

@ -315,7 +315,7 @@ impl crate::services::BackendSchedulerService for Backend {
) -> Result<scheduler::ComputeFsrsWeightsResponse> { ) -> Result<scheduler::ComputeFsrsWeightsResponse> {
let fsrs = FSRS::new(None)?; let fsrs = FSRS::new(None)?;
let fsrs_items = req.items.len() as u32; let fsrs_items = req.items.len() as u32;
let weights = fsrs.compute_weights( let weights = fsrs.compute_parameters(
req.items.into_iter().map(fsrs_item_proto_to_fsrs).collect(), req.items.into_iter().map(fsrs_item_proto_to_fsrs).collect(),
false, false,
None, None,