data sequencing

khishorks at gmail.com khishorks at gmail.com
Sat Feb 1 01:19:56 EST 2020


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?


More information about the Python-list mailing list