Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Minor] Enable continuation of training #1605

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
Constantin343 committed Jul 5, 2024
commit b14d20b2fe9d357d10719b61081eda39132a0345
3 changes: 2 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@
YOS_FILE = os.path.join(DATA_DIR, "yosemite_temps.csv")
NROWS = 512
EPOCHS = 10
ADDITIONAL_EPOCHS = 5
LR = 1.0
BATCH_SIZE = 64

@@ -112,5 +113,5 @@ def test_continue_training():
n_changepoints=0,
)
metrics = m.fit(df, checkpointing=True, freq="D")
metrics2 = m.fit(df, freq="D", continue_training=True)
metrics2 = m.fit(df, freq="D", continue_training=True, epochs=ADDITIONAL_EPOCHS)
assert metrics["Loss"].min() >= metrics2["Loss"].min()
Loading
Oops, something went wrong.