We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c5b756 commit b8ed502Copy full SHA for b8ed502
1 file changed
tests/test_spatial_cv.py
@@ -100,7 +100,7 @@ def test_multi_grouped_spatial_splits(mock_panel_data):
100
tr_periods = set(mock_panel_data["year"].iloc[train_idx])
101
ts_periods = set(mock_panel_data["year"].iloc[test_idx])
102
if len(tr_periods) > 0 and len(ts_periods) > 0:
103
- assert max(tr_periods) <= max(ts_periods), "Temporal anomaly encountered!"
+ assert max(tr_periods) < min(ts_periods), "Temporal anomaly encountered!"
104
105
106
def test_plot_splits_with_stratified_group_kfold(mock_panel_data):
0 commit comments