scikit-lego icon indicating copy to clipboard operation
scikit-lego copied to clipboard

[DOCS] Example of using TimeGapSplit

Open PyDataBlog opened this issue 5 years ago • 0 comments

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')

PyDataBlog avatar Oct 06 '20 13:10 PyDataBlog