From 399f725a665100debd857a2427d2d6615656d3a3 Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Thu, 29 Feb 2024 15:28:48 +0800 Subject: [PATCH] Fix/loosen clamp of parameters (#158) * Fix/loosen clamp of parameters * bump version * Update weight_clipper.rs --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/weight_clipper.rs | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index beb364ba..03753291 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1046,7 +1046,7 @@ dependencies = [ [[package]] name = "fsrs" -version = "0.4.1" +version = "0.4.2" dependencies = [ "burn", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 49a48d25..f7858c45 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsrs" -version = "0.4.1" +version = "0.4.2" authors = ["Open Spaced Repetition"] categories = ["algorithms", "science"] edition = "2021" diff --git a/src/weight_clipper.rs b/src/weight_clipper.rs index 54954183..13e2df0a 100644 --- a/src/weight_clipper.rs +++ b/src/weight_clipper.rs @@ -22,16 +22,16 @@ pub(crate) fn clip_parameters(parameters: &Parameters) -> Vec { (1.0, 10.0), (0.1, 5.0), (0.1, 5.0), - (0.0, 0.5), - (0.0, 3.0), - (0.1, 0.8), - (0.01, 2.5), + (0.0, 0.75), + (0.0, 4.0), + (0.0, 0.8), + (0.01, 3.0), (0.5, 5.0), (0.01, 0.2), (0.01, 0.9), - (0.01, 2.0), + (0.01, 3.0), (0.0, 1.0), - (1.0, 4.0), + (1.0, 6.0), ]; let mut parameters = parameters.to_vec();