"""Remove training labels that overlap a test interval.

If each outcome uses five future observations, training decision index plus five must be below the test start.
All inputs are synthetic teaching examples. Run: python 35_purged-label-boundary.py
"""
from tv_math import *

test_start=20
horizon=5
train=[i for i in range(test_start) if i+horizon<test_start]
assert train[-1]==14
print(train)
