フィルターのクリア

can anyone tell the code for save and test the neural network??

2 ビュー (過去 30 日間)
Deepika B
Deepika B 2020 年 3 月 13 日
回答済み: Harsha Priya Daggubati 2020 年 3 月 16 日
I think so ,My model is not overfitting but when the net is saved and test using classify syntax the testing fails,,, what is that means?
confusion matrix overall accuracy is 87% but testing get fails? what is the reason behind this ? Is this is related to test image or there is a problem in the save and test of a neural network ?
code for save the net and test :
load res1.mat;
imgpath='C:\Users\Administrator\m\'; % the folder in which ur images exists
am=dir([imgpath '*.jpg']);
for i = 1 : 30
a{i}=imread([imgpath am(i).name]);
label = classify(net1,a{i});
figure
imshow(a{i})
title(char(label));
end

回答 (1 件)

Harsha Priya Daggubati
Harsha Priya Daggubati 2020 年 3 月 16 日
Hi,
I guess there is nothing wrong with your network. You should try giving your network a unique name while saving, and use your network name after loading to classify the test images instead of using 'classify' method.
Refer to the thread:
Hope this helps!

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by