WRONG RESULT USING CNN

1 回表示 (過去 30 日間)
muna
muna 2023 年 10 月 26 日
回答済み: Image Analyst 2023 年 10 月 27 日
I have a classification problem and i am using classification learner toolbox for NN, SVM and KNN and a writen code for CNN. the result for the first three classifiers are higher than CNN. as I read befoer, deep learning methods gave higher accuracy resukts complaring with machine learning methods. what should I do? if my code is wrong how to fix it?

回答 (2 件)

Yash
Yash 2023 年 10 月 27 日
Hi muna,
I understand that you are concerned that your deep learning models are performing poor in camparison to machine learning models and you are wondering where did you went wrong. As the name suggests, deep learning networks such as CNNs have a large number of layers that might result in an overfitted DL model which gives poor accuracy on test dataset. You can try the following:
  • Check if your training set is large enough. Deep learning models often require a large amount of data to generalize well. If your dataset is small, consider using techniques like data augmentation or transfer learning to overcome this limitation. You can also consider using transfer learning. This technique allows you to leverage pre-trained models on larger datasets and fine-tune them for your specific problem. This can often lead to better performance, even with limited data.
  • Apply regularization techniques to prevent overfitting. Common techniques include dropout, weight decay (L2 regularization), and early stopping. Regularization helps the model generalize better to unseen data. You can also try using ensemble methods, such as model averaging or stacking, to combine the predictions of multiple models. This can help improve the overall accuracy by leveraging the strengths of different classifiers.
In case of potential errors or bugs, ensure that you are correctly loading and preprocessing your data, setting the correct labels, and splitting the dataset into training and testing sets.
Hope this helps!

Image Analyst
Image Analyst 2023 年 10 月 27 日
What you read or misread: "deep learning methods gave higher accuracy resukts complaring with machine learning methods" is incorrect. They sometimes give better results but don't always give better results. And given the drawbacks of deep learning (higher number of training observations needed, longer time to train) often the standard and stragihtforward traditional machine learning methods are preferable. Go with whatever model gives you the best predictions.

カテゴリ

Help Center および File ExchangeGet Started with Statistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by