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

data sequencing

On 1/02/20 7:19 PM, khishorks at wrote:
> 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?

Hi, welcome to the list!

What is the application - or is this ComSc 'homework'?

Have you considered for-loops?

What code have you written have so-far, and what does it output?
Regards =dn