scikit-lego
scikit-lego copied to clipboard
[DOCS] Example of using TimeGapSplit
Using this dummy timeseries from pandas. How would I split this data into a training and validation set with a gap of say 1 week? It is quite unclear from the documentation of the method.
import pandas as pd
# daily time series
data = pd.util.testing.makeTimeDataFrame(1000, freq='d')