"""Generate rolling chronological train-test intervals.

Intervals are zero-based and end-exclusive. Each test starts after its training segment.
All inputs are synthetic teaching examples. Run: python 34_walk-forward-splits.py
"""
from tv_math import *

v=walk_forward_indices(15,6,3)
assert v==[(0,6,6,9),(3,9,9,12),(6,12,12,15)]
print(v)
