How to get training time of LSTM in Matlab?

5 ビュー (過去 30 日間)
Nazila Pourhajy
Nazila Pourhajy 2022 年 6 月 5 日
回答済み: Divyam 2024 年 9 月 6 日
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.

回答 (1 件)

Divyam
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

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by