Neural Network - R value equal 1- Over-fitting or not?
9 views (last 30 days)
I built a neural network model for regression as shown below but I got an R value equal 0.99998 which is almost 1. Does this indicate that I have overfitting? If yes, then how can I prevent or avoid overfitting?
% Read input and output vaules
% Normalization between -1 and 1
[I,ps] = mapminmax(I);
[T,ts] = mapminmax(T);
% Building Network
[net,tr] = train(net, I, T);
% Teting Neural networl
tstOutput = mapminmax('reverse',tstOutput,ts);
tstperformance = perform(net, T(tInd), tstOutput)
Srivardhan Gadila on 12 Aug 2019
If the calculated R value is almost same for all the three Train, Test and Validation sets then your model is no near to Overfitting. If you observe that the calculated R for training set is more than that for validation and test sets then your network is Over fitting on the training set. You can refer to Improve Shallow Neural Network Generalization and Avoid Overfitting.