Skip to content

Commit

Permalink
Fix/loosen clamp of parameters (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Feb 29, 2024
1 parent be89d5c commit 0d2c894
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "FSRS-Optimizer"
version = "4.25.0"
version = "4.25.1"
readme = "README.md"
dependencies = [
"matplotlib>=3.7.0",
Expand Down
12 changes: 6 additions & 6 deletions src/fsrs_optimizer/fsrs_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,16 @@ def __call__(self, module):
w[4] = w[4].clamp(1, 10)
w[5] = w[5].clamp(0.1, 5)
w[6] = w[6].clamp(0.1, 5)
w[7] = w[7].clamp(0, 0.5)
w[8] = w[8].clamp(0, 3)
w[9] = w[9].clamp(0.1, 0.8)
w[10] = w[10].clamp(0.01, 2.5)
w[7] = w[7].clamp(0, 0.75)
w[8] = w[8].clamp(0, 4)
w[9] = w[9].clamp(0, 0.8)
w[10] = w[10].clamp(0.01, 3)
w[11] = w[11].clamp(0.5, 5)
w[12] = w[12].clamp(0.01, 0.2)
w[13] = w[13].clamp(0.01, 0.9)
w[14] = w[14].clamp(0.01, 2)
w[14] = w[14].clamp(0.01, 3)
w[15] = w[15].clamp(0, 1)
w[16] = w[16].clamp(1, 4)
w[16] = w[16].clamp(1, 6)
module.w.data = w


Expand Down

0 comments on commit 0d2c894

Please sign in to comment.