Skip to content

Commit

Permalink
Improved test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
eschibli committed Oct 28, 2024
1 parent 3a392a3 commit ebe02d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion darts/tests/models/forecasting/test_tsmixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def test_time_batch_norm_2d_gradients(self):

@pytest.mark.parametrize("project_first_layer", [True, False])
def test_project_first(self, project_first_layer):
ts = tg.sine_timeseries(length=36)
ts = tg.sine_timeseries(length=36, freq="h")
input_len = 12
output_len = 6

Expand All @@ -374,6 +374,8 @@ def test_project_first(self, project_first_layer):
output_chunk_length=output_len,
n_epochs=1,
project_first_layer=project_first_layer,
# Cover case of projecting future covs back to input dims
add_encoders={"cyclic": {"future": "hour"}},
**tfm_kwargs,
)
model.fit(ts)
Expand Down

0 comments on commit ebe02d1

Please sign in to comment.