git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

data sequencing


I have a data sequence of around 300000 sets. I need to batch the sequence into an input-output format. for example 

data= [1,2,3,4,5,6,7,8,9,10,......,100]

X1= [1,2,3,4,5,6,7,8,9,10]   y1 = [11,12]
X2= [3,4,5,6,7,8,9,....11,12] y2 = [13,14]
and it continues till 100.

here X is input and y is output. How to sequence the data in steps of 2?