- https://www.mathworks.com/help/matlab/ref/tic.html
- https://www.mathworks.com/help/matlab/ref/toc.html
How to get training time of LSTM in Matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everyone.
I trained LSTM in matlab and I want to get training time(elapsed time) after training in Matlab by code. I tried the info option to get training time but there was no option to do so. please guide me. Thank you.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1022580/image.jpeg)
댓글 수: 0
답변 (1개)
Divyam
2024년 9월 6일
You can utilize the "tic" and "toc" functions for measuring the training time for your LSTM.
% Initialize the timer
tic;
% Start the training for the LSTM
trainNetwork(<Parameters>);
% Store the elapsed time in the trainingTime variable
trainingTime = toc;
For more information regarding the "tic" & "toc" functions, refer to the following documentation links:
For more information regarding other performance metrics, refer to this documentation link: https://www.mathworks.com/help/matlab/performance-and-memory.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!