Skip to content

Instantly share code, notes, and snippets.

@lynnssi
Created July 21, 2021 02:29
Show Gist options
  • Save lynnssi/051e276cee5c17fc331d4bc20a4b2ed8 to your computer and use it in GitHub Desktop.
Save lynnssi/051e276cee5c17fc331d4bc20a4b2ed8 to your computer and use it in GitHub Desktop.
cv = SlidingWindowSplitter(window_length=5, fh=[1, 2, 3], initial_window=10, step_length=3)
n_splits = cv.get_n_splits(y)
print(f"Number of Folds = {n_splits}")
>> Number of Folds = 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment