How to achieve better regression using Neural network having 364*6 inputs and 364*1 output?

1 次查看(过去 30 天)
Hi, I have 364*6 inputs and 364*1 output and loading into neural network of 10 neurons and all other settings are given below:
clear all;
close all;
load('nmtraindata.mat');
in=input';
ref=output';
net = feedforwardnet(10);
% net.performFcn = 'mse';
net.performFcn = 'mae';
%set NN function and other parameters 2if desired
net.layers{1}.transferFcn = 'tansig'; % transfer function is "x=y" %tansig logsig
% net.layers{2}.transferFcn = 'tansig';
net.trainParam.max_fail = 1000;
net.trainParam.min_grad=1e-9;
net.trainParam.show=10; %showing intervals
net.trainParam.lr=0.1; %learning rate
net.trainParam.epochs=1000; %maximum iterations
net.trainParam.goal=0; %error goal
net.trainParam.mc = 0.9;
% train the NN
net = train(net,in,ref);
estim_out = sim(net,in); % simulate the network to calculate output
plot(estim_out,'r'); hold on;
plot(ref,'b')
If there is less noisy data then regression plot is 1 (desired) but when i program large data set like the above one, i don't regression above 0.5. Am I missing something, like, do I need to change settings of neural network?
Looking forward for a positive solution and guidelines to this problem.
  5 个评论
Ahsen Noor Subhopoto
Hi Greg and KSSV. I have attached my inputs plot (fig 1) and input vs output plot (fig 2). Output is 1 and 0.
Greg. I also tried alternatives to improve my R in regression plot of neural network. Unfortunately, I have to train my data 5000+ times to improve R from 0.3 to 0.7. According to you, we need to train data at least 20 times.
1. I don't understand, why my data is behaving different for the neural network. I used default settings of feedforwardnetwork for training it 5000 times.
2. Why NN was limited to R = 0.7 not 1 (desired)
3. What do I need to do to improve my NN regression plot to R = 1. you said use scatter plots but GUI of matlab is bydefault line plot.
kind regards,

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by