How is batch learning executed with the trainnet function ?

조회 수: 2 (최근 30일)
tobias
tobias 2024년 8월 29일
댓글: Ayush Aniket 2024년 9월 16일
Hello dear Community,
i have done a lot of reading up on how to implement batch-learning with the trainnet function.
I come to the conclusion that the correct input and target data format is vital.
However, i do not get the correct format.
If someone has already done batch learning with the train net function and has some tips regarding the
input and target data format, i would highly appreciate any input.
Thank you
Best wishes

답변 (1개)

Ayush Aniket
Ayush Aniket 2024년 8월 29일
편집: Ayush Aniket 2024년 8월 29일
Hi Tobias,
Refer to the following documentation which shows the process of training a deep learning network on out-of-memory sequence data using a custom mini-batch datastore in MATLAB:
The important steps are:
  1. Read your sequence data using sequenceDatastore function.
  2. Set the mini-batch size of the datastore object.
  3. Ensure to set the same mini-batch size in the trainingOptions function.
The format for input data for a vector sequence is s-by-c matrices, where s and c are the numbers of time steps and channels (features) of the sequences, respectively. Refer to the following documentation to read about sequence data input in the trainnet function: https://www.mathworks.com/help/deeplearning/ref/trainnet.html#mw_8b6c966a-f840-4426-9693-279222b8372f
  댓글 수: 2
tobias
tobias 2024년 9월 2일
Thank you very much, this might be the right track!
I noticed, that the example is for a classification task, i would want to perform a regression task.
Do you know, if it is possible to define the target values for the regression inside the sequence datastore so that the correct batch of input data is compared with the its corresponding batch of target data ?
Thank you !

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

카테고리

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

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by