LSTM TO STRING CATEGORICAL LABELS

조회 수: 2 (최근 30일)
Ernest Modise - Kgamane
Ernest Modise - Kgamane 2024년 6월 14일
답변: Ernest Modise - Kgamane 2024년 6월 15일
Hi Please help with with this code, there are two questions,
  1. Looks like my LSTM cannot achieve any better accuracy - what could be the cause?
  2. At the very end of the code, I wanted to to plot a confusion chart, - 1 - I used a for loop to capture the predicted labels from the trained network, is there a one line command for this type of data structure?
  3. Still on the confusion chart, what would be the best way to create the true labels set, I see the one I used in the function call for confusion chart is really incomplete, I am expecting the true labels set to be 40 x 5 matrix just like the test set.
  댓글 수: 1
Ernest Modise - Kgamane
Ernest Modise - Kgamane 2024년 6월 14일
Hi I managed to resolve the second part, I realized that I had not indexed my categorical lables properly on line 20 of the code.
I still want to know what the training can only achieve around 80 % accuracy. How can I improve this?

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

채택된 답변

Ernest Modise - Kgamane
Ernest Modise - Kgamane 2024년 6월 15일
I realized that there was a problem in my data. I had some duplications, this has been sorted by cleaning my input file LSTMdataIn.xlsx
Training on single CPU.
|========================================================================================|
| Epoch | Iteration | Time Elapsed | Mini-batch | Mini-batch | Base Learning |
| | | (hh:mm:ss) | Accuracy | Loss | Rate |
|========================================================================================|
| 1 | 1 | 00:00:04 | 25.00% | 1.5810 | 0.5000 |
| 9 | 50 | 00:00:06 | 100.00% | 6.0340e-05 | 0.5000 |
| 10 | 60 | 00:00:07 | 100.00% | 4.7343e-05 | 0.5000 |
|========================================================================================|
Training finished: Max epochs completed.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by