# Timeseries prediction with label being next timeseries element instead of own column?

**URL:** <https://community.konduit.ai/t/timeseries-prediction-with-label-being-next-timeseries-element-instead-of-own-column/1924>\
**Category:** DataVec\
**Created:** [July 6, 2022, 11:32am UTC](https://community.konduit.ai/t/timeseries-prediction-with-label-being-next-timeseries-element-instead-of-own-column/1924 "2022-07-06T11:32:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeckerBoy](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/beckerboy/32/777_2.png) [@BeckerBoy](https://community.konduit.ai/u/BeckerBoy)\
**Post date:** [July 6, 2022, 11:32am UTC](https://community.konduit.ai/t/timeseries-prediction-with-label-being-next-timeseries-element-instead-of-own-column/1924/1 "2022-07-06T11:32:40Z")

</div>

Hello,

I’d like to predict values of a timeseries. For that I want to load a csv file containing sampled data (7 features per message).

I’m using `CSVVariableSlidingWindowRecordReader` with a `maxLinesPerSequence` of `N`. I’d now like to get datavec / dl4j to automatically use the message at `X + N + 1` as the label, where `X` is the current start of the sliding window. Is there a way to achieve this or do I manually have to produce create a second csv containing the data that is to predict?

Regards,
