Skip to content

Commit 39b6466

Browse files
committed
linting error
1 parent a83f569 commit 39b6466

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/model_selection/plot_cv_indices.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@
6262
groups = np.repeat(np.arange(10), rng.multinomial(100, group_prior))
6363

6464
# Un-Evenly spaced groups repeated once
65-
unevengroups = np.hstack([[group] * 10 if group % 3 else [group] * 5 for group in range(12)])
65+
unevengroups = np.hstack(
66+
[[group] * 10 if group % 3 else [group] * 5 for group in range(12)]
67+
)
68+
6669

6770
def visualize_groups(classes, groups, name):
6871
# Visualize dataset groups
@@ -167,7 +170,7 @@ def plot_cv_indices(cv, X, y, group, ax, n_splits, lw=10):
167170
# different folds.
168171
# - ``StratifiedGroupKFold`` to keep the constraint of ``GroupKFold`` while
169172
# attempting to return stratified folds.
170-
cvs = [StratifiedKFold, GroupKFold, StratifiedGroupKFold]
173+
cvs = [StratifiedKFold, GroupKFold, StratifiedGroupKFold, GroupTimeSeriesSplit]
171174

172175
for cv in cvs:
173176
fig, ax = plt.subplots(figsize=(6, 3))

0 commit comments

Comments
 (0)