Skip to content

Commit

Permalink
Fix/set sigma to 1 / sqrt(total_cnt) (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Apr 7, 2024
1 parent a7504d0 commit 65a4bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.27.4"
version = "4.27.5"
readme = "README.md"
dependencies = [
"matplotlib>=3.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/fsrs_optimizer/fsrs_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def cal_stability(group: pd.DataFrame) -> pd.DataFrame:
power_forgetting_curve,
group["delta_t"],
group["retention"],
sigma=1 / group["total_cnt"],
sigma=1 / np.sqrt(group["total_cnt"]),
)[0][0],
1,
)
Expand Down

0 comments on commit 65a4bf5

Please sign in to comment.