- Read your sequence data using sequenceDatastore function.
- Set the mini-batch size of the datastore object.
- Ensure to set the same mini-batch size in the trainingOptions function.
How is batch learning executed with the trainnet function ?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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:
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 个评论
Ayush Aniket
2024-9-16
Please refer the following documentation: https://www.mathworks.com/help/deeplearning/ug/develop-custom-mini-batch-datastore.html#mw_1fbbfc62-d6e2-4e7c-843f-67b467135050
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!