Effacer les filtres
Effacer les filtres

How to get mse, mae and mape separately for multi layer output?

1 vue (au cours des 30 derniers jours)
Shay Ang
Shay Ang le 15 Mar 2019
My codes have 2 layer output. But when i run, it only display error values (mse, mae and mape) for single layer output. I don't know whether the error is for first or second layer? Also, i want to get separate error values for each output layer. How do i do that?
Inp=repmat(TInp,1,2);
Out=repmat(TOut,1,2);
[NInp,PS]=mapminmax(Inp)
[NOut,TS]=mapminmax(Out)
[trainInd,valInd,testInd] = divideblock(40,0.5,0.3,0.2);
for i=1:20;
net = feedforwardnet([i,2],'trainlm');
net=train(net,NInp,NOut);
Y=sim(net,NInp);
Targ=mapminmax('reverse',Y,TS);
error=(Out-Targ);
perf=mse(net,Out,Targ);
perf2=mae(error);
perf3=mean(abs(error/Out));
MSE(i,:)=perf;
MAE(i,:)=perf2;
MAPE(i,:)=perf3;
end

Réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by