Hi. I am using mse funtion to find the mse of my network. In my opinion mse should change for every input.once i save the network and reload it. the mse command doesnt work and produces error.kindly help

1 次查看(过去 30 天)
if true
[baboon_fit,tr]=train(baboonnet,input,target);
output=sim(baboon_fit,input);
MeansqEr= mse(baboon_fit,target,output)
save baboon_fit
%in new program
load baboon_fit
output=sim(baboon_fit,newinput);
MeansqEr= mse(baboon_fit,target,output)
end
%Function 'subsindex' is not defined for values of class 'network' error message is displayed.

采纳的回答

Greg Heath
Greg Heath 2017-8-24
Just use
MSE = mse(target-output)
Hope this helps.
Thank you for formally accepting my answer
Greg
P.S. You can also just use
output = baboon_fit(newinput);

更多回答(0 个)

类别

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