필터 지우기
필터 지우기

matlab trainNetwork mini-batch size

조회 수: 3 (최근 30일)
tony  gian
tony gian 2018년 10월 17일
댓글: tony gian 2018년 10월 26일
I am using a LSTM neural network(trainNetwork function) for a 2 time series input and a 30 time series output. When i change the minibatch size, in the output window during training the iteration number is constant and equal to the epoch number, whatever the minibatch size. Is the minibatch size really changing or just being equaly to the number of timesteps? I input my data as matrices, with rows corresponding to different outputs/inputs and columns corresponding to timesteps. Thank you in advance

채택된 답변

Viren Gupta
Viren Gupta 2018년 10월 26일
If I understand correctly, you expect the 'miniBatchSize' to create the batches along the time dimension. But this is not what 'miniBatchSize' does. 'MiniBatchSize' creates batches in the observation dimension, not the time dimension. To create batches in the time dimension, you can use the 'SequenceLength' parameter.The default 'SequenceLength' parameter is ‘longest’, which means that the batch sequence length is determined by the longest sequence in the batch.
  댓글 수: 1
tony  gian
tony gian 2018년 10월 26일
Thank you very much, you are correct.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by