Skip to content

Commit

Permalink
Fix/loosen clamp of parameters (#158)
Browse files Browse the repository at this point in the history
* Fix/loosen clamp of parameters

* bump version

* Update weight_clipper.rs
  • Loading branch information
L-M-Sherlock authored Feb 29, 2024
1 parent e34265a commit 399f725
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fsrs"
version = "0.4.1"
version = "0.4.2"
authors = ["Open Spaced Repetition"]
categories = ["algorithms", "science"]
edition = "2021"
Expand Down
12 changes: 6 additions & 6 deletions src/weight_clipper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ pub(crate) fn clip_parameters(parameters: &Parameters) -> Vec<f32> {
(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();
Expand Down

0 comments on commit 399f725

Please sign in to comment.