Skip to content

Commit

Permalink
Feat/expose gamma to optimizer.train() (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Jan 24, 2025
1 parent 3f9a8ee commit be0c7da
Show file tree
Hide file tree
Showing 2 changed files with 4 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 = "5.7.0"
version = "5.7.1"
readme = "README.md"
dependencies = [
"matplotlib>=3.7.0",
Expand Down
3 changes: 3 additions & 0 deletions src/fsrs_optimizer/fsrs_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,7 @@ def train(
self,
lr: float = 4e-2,
n_epoch: int = 5,
gamma: float = 1.0,
batch_size: int = 512,
verbose: bool = True,
split_by_time: bool = False,
Expand Down Expand Up @@ -1263,6 +1264,7 @@ def train(
self.init_w,
n_epoch=n_epoch,
lr=lr,
gamma=gamma,
batch_size=batch_size,
float_delta_t=self.float_delta_t,
enable_short_term=self.enable_short_term,
Expand All @@ -1287,6 +1289,7 @@ def train(
self.init_w,
n_epoch=n_epoch,
lr=lr,
gamma=gamma,
batch_size=batch_size,
float_delta_t=self.float_delta_t,
enable_short_term=self.enable_short_term,
Expand Down

0 comments on commit be0c7da

Please sign in to comment.