Low accuracy of CNN

3 ビュー (過去 30 日間)
CHHAVI
CHHAVI 2021 年 5 月 8 日
回答済み: Aditya Patil 2021 年 5 月 11 日
I reshaped my data to 4D (9x2000x10x20000) i.e height x width x channel x instances. and label 20000x1. As my matlab is not able to processed these 20000 at a time so i took first 1000 instances and evaluated my CNN model with 70:30 holdout. but i am only getting 20% caccuracy. and model is overfitting. Model is predicting on one class for all available classes. Data is unbalenced also.

回答 (1 件)

Aditya Patil
Aditya Patil 2021 年 5 月 11 日
You can use all the data by passing some data at a time, also called as a MiniBatch. See the MiniBatchSize option in traningoptions.
If the data is imbalanced due to taking small sample, then using all data should solve the issue. On the other hand, if the entire data is imbalanced, consider using an appropriate loss function, such as focalLossLayer. Alternately, consider undersampling the data with more samples, or augment the data to increase samples in class with less samples.

カテゴリ

Help Center および File ExchangePHY Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by