Classification error at each epoch
1 回表示 (過去 30 日間)
古いコメントを表示
Hi there, I am performing a classification problem using Neural Network tool. I did the following:
hiddenLayerSize = 10;
net = patternnet(hiddenLayerSize);
net.inputs{1}.processFcns = {'removeconstantrows','mapminmax'};
net.outputs{2}.processFcns = {'removeconstantrows','mapminmax'};
net.divideParam.trainRatio = 70/100; net.divideParam.valRatio = 15/100; net.divideParam.testRatio = 15/100;
net.trainFcn = 'trainscg'; % Scaled conjugate gradient
net.performFcn = 'mse'; % Mean squared error
net.plotFcns = {'plotperform','plottrainstate','ploterrhist', ... 'plotregression', 'plotfit'};
I then trained the network
[net,tr] = train(net,inputs,targets);
and got some results. From tr information, I can extract classification hit/miss for each class, as well as mse at each epoch. However, is it possible to extract, at each epoch, percentage of hit/miss for each sub-class?
How mse is estimated at each time step?
Is hit/miss percentage for each class explicitly computed at each time step?
Best Regards, Alessandro
0 件のコメント
採用された回答
Greg Heath
2016 年 1 月 22 日
Classification error at each epoch Asked by alessandro on 19 Jan 2016 at 8:45 Latest activity Edited by alessandro on 19 Jan 2016 at 8:45 Hi there, I am performing a classification problem using Neural Network tool. I did the following:
GEH1 = 'I deleted default statements'
net = patternnet;
net.performFcn = 'mse'; % Mean squared error
..[net,tr] = train(net,inputs,targets);
and got some results. From tr information, I can extract classification hit/miss for each class, as well as mse at each epoch. However, is it possible to extract, at each epoch, percentage of hit/miss for each sub-class?
GEH2 ='YES. The locations of the trn/val/tst subclass indices are in tr'
How mse is estimated at each time step?
GEH3 = 'Isn't it obvious?'
Is hit/miss percentage for each class explicitly computed at each time step?
GEH4 = ' No'
Hope this helps
Thank you for formally accepting my answer
Greg
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sequence and Numeric Feature Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!