diff --git a/pyproject.toml b/pyproject.toml index bf0e124..9edec66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/src/fsrs_optimizer/fsrs_optimizer.py b/src/fsrs_optimizer/fsrs_optimizer.py index 8566614..21f7a6e 100644 --- a/src/fsrs_optimizer/fsrs_optimizer.py +++ b/src/fsrs_optimizer/fsrs_optimizer.py @@ -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, @@ -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, @@ -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,