Displaying MSE values at training,validation and testing ratios

8 ビュー (過去 30 日間)
bryce maher
bryce maher 2020 年 2 月 23 日
回答済み: Vimal Rathod 2020 年 2 月 26 日
Just started learning about neural networks and have been using the neural net fitting tool box. I've taken the code and tried adding an extra layer which has been successful but i dont know how to find these MSE values?
heres my code:
% Solve an Input-Output Fitting problem with a Neural Network
% Pressure - input data.
% Output - target data.
input=xlsread('NEW DATA.xlsx',1,'E7:E39');
x = input';
output=xlsread('NEW DATA.xlsx',1,'H7:I39');
t = output';
% Choose a Training Function
trainFcn = 'trainlm'; % Levenberg-Marquardt backpropagation.
% Create a Fitting Network
hiddenLayer1Size = 80;
hiddenLayer2Size = 40;
net = fitnet([hiddenLayer1Size hiddenLayer2Size],trainFcn);
% Setup Division of Data for Training, Validation, Testing
net.divideParam.trainRatio = 80/100;
net.divideParam.valRatio = 5/100;
net.divideParam.testRatio = 15/100;
% Train the Network
[net,tr] = train(net,x,t);
% Test the Network
y = net(x);
e = gsubtract(t,y);
performance = perform(net,t,y)
view(net)

回答 (1 件)

Vimal Rathod
Vimal Rathod 2020 年 2 月 26 日
Hi,
Below is a link to similar question which could be of your use.
Hope this helps!

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by