Skip to content

Commit

Permalink
Fix/drop nan in formula_analysis (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Jan 11, 2024
1 parent 9519811 commit eb96867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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.20.7"
version = "4.20.8"
readme = "README.md"
dependencies = [
"matplotlib>=3.7.0",
Expand Down
1 change: 1 addition & 0 deletions src/fsrs_optimizer/fsrs_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,7 @@ def loss(stability):
.apply(cal_stability)
.reset_index(drop=True)
)
analysis_group.dropna(inplace=True)
analysis_group.drop_duplicates(subset=[(group_key, "")], inplace=True)
analysis_group.sort_values(by=[group_key], inplace=True)
rmse = mean_squared_error(
Expand Down

0 comments on commit eb96867

Please sign in to comment.