在input shape中有三个参数,smaples/timesteps/dim,假设我现在有3000个数据,每个数据6个feature,然后我设置5个batch,那batchsize = 3000/5 = 600,接下来设置input参数,samples = 20,dim = 6 (因为有6个feature),timesteps = 30 (samples x tiemsteps = batchsize)
这样理解是否正确?谢谢
在input shape中有三个参数,smaples/timesteps/dim,假设我现在有3000个数据,每个数据6个feature,然后我设置5个batch,那batchsize = 3000/5 = 600,接下来设置input参数,samples = 20,dim = 6 (因为有6个feature),timesteps = 30 (samples x tiemsteps = batchsize)
这样理解是否正确?谢谢
3000个数据smaples=3000
timesteps是指你时间顺序的数据有多少步。比如你一个时间序列,有10个时间点,那么就是10
dim是你有几个列,比如预测股票,你每个时刻有最高价、最低价、交易量、买入手、卖出手5个列,那么就是5
batchsize和这些都没有关系,batchsize大,学习效率高,精度低,反之效率低,精度高