if your data is tabular, with 5 explanatory factors, input shape can be either (batch,time,5) or (time,batch,5). if you’re unrolling values from a single column dataset, ignore this, last dimension size 1 is correct.