Skip to content

Commit

Permalink
Fix/support float delta_t (#140)
Browse files Browse the repository at this point in the history
* Fix/support float delta_t

* bump version
  • Loading branch information
L-M-Sherlock authored Sep 26, 2024
1 parent 1cb4958 commit 297025c
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 = "5.0.9"
version = "5.0.10"
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 @@ -213,7 +213,7 @@ def __init__(
self.x_train = pad_sequence(
dataframe["tensor"].to_list(), batch_first=True, padding_value=0
)
self.t_train = torch.tensor(dataframe["delta_t"].values, dtype=torch.int)
self.t_train = torch.tensor(dataframe["delta_t"].values, dtype=torch.float)
self.y_train = torch.tensor(dataframe["y"].values, dtype=torch.float)
self.seq_len = torch.tensor(
dataframe["tensor"].map(len).values, dtype=torch.long
Expand Down

0 comments on commit 297025c

Please sign in to comment.