How to get training accuracy in bidirectional LSTM?

조회 수: 2 (최근 30일)
Hany Ferdinando
Hany Ferdinando 2018년 6월 23일
답변: Prajit T R 2018년 6월 26일
Hi,
I used the bidirectional LSTM and I would like to save its training accuracy. According to trainingoptions, 'OutputFcn' is output functions to call during training, specified as the comma-separated pair consisting of 'OutputFcn' and a function handle or cell array of function handles. trainNetwork calls the specified functions once before the start of training, after each iteration, and once after training has finished. trainNetwork passes a structure containing information in certain fields. One of them is TrainingAccuracy. How can I accomplish my goal to save training accuracy of my trained network?
Thanks a lot
Hany

답변 (1개)

Prajit T R
Prajit T R 2018년 6월 26일
Hi Hany
To save the training accuracy of the model you would have to write a custom output function and pass it to the parameter 'OutputFcn' as demonstrated in the following example:
In your output function, you could obtain and store the training accuracy for each epoch by using info.TrainingAccuracy.
Hope this helps
Prajit

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by