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 Center および File ExchangeImage Data Workflows についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by