Relative Content

Tag Archive for time-seriestensorflow-datasets

How to create a dataset for a timeseries with variant elements

I have a csv data looks like this, and I want to create a tf.data.Dataset with window functionality. For example, the first 5 rows (unixtime 1700323218 and 1700323219) are grouped together and the last 5 rows(unixtime 1700323218 and 1700323219) are grouped together. After reading a few guides related to tf.data.Dataset, I still could not figure out how to build such Dataset. Generally, the window size is the continuous seconds of unixtime, and I want to batch all rows in the specific window.