Is my patternnet for two-class image classification okay?

조회 수: 1 (최근 30일)
San May
San May 2019년 1월 12일
답변: Dhia El Hak Daamouche 2019년 7월 24일
I have 10,000 images for two classes including 5000 for each class. I used all default parameters. One-fifth of the whole is set as holdout set and for the training network, 70:15:15 ratio is used for training, testing, and validation set inside the network. So, And then, I trained my network with many hidden layers. Among them, 340 hidden layer size has highest accuracy for confusion matrix as I have attached.And, the accuracy for the holdout set is 92.45%. And the performance of the network is as follows:
I would like to know whether my network is okay or not. And I also want to know which more parameters I should vary to get better accuracy.
.
Picture1.png

채택된 답변

Kenta
Kenta 2019년 1월 12일
Dear San May
I think your work is great! Cross entropy error of training data is much lower than that of test data.
So, maybe your network is over-fitted to the training data. To prevent it, it can be considered to change L2 regularization, momentum, dropout and so on. Depending on your optimizar (e.g. sgdm, adam...), other parameters can be corrected.
Please refer the webpage below about the parameter setting.
In my opinion and experience, it would be better to use transfer learning.
It utilizes pre-trained network and it is better than to construct your network from scratch.
We can easily try that with the document. In my case, the accuracy was much better to use the pre-trained network such as Alexnet and GoogleNet.

추가 답변 (2개)

San May
San May 2019년 1월 13일
Yes, thank you so much.

Dhia El Hak Daamouche
Dhia El Hak Daamouche 2019년 7월 24일
Hey bro,
I'm doing the same work (I wanna classify an image of Dubai into two classes: urban>> Black and non_urban>> white). I've completed the training and had the results as you. Now what I want is to classify the image by using this training, but I couldn't figure out how to do it. do you have an idea how to do the classification?
Any help would be so approciate
regards,
Dhia

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by