Training a neural network
Afficher commentaires plus anciens
Hi,
I am trying to develop a neural network which predicts an output based on 4 inputs, one of which is the output of the previous step. Currently I am just using a standard function fitting network (not a time-series prediction).
The neural network works really well (r squared approx. 0.98 - 0.99) when the output of the previous step is given independent of the neural network result.
However, when I use the neural network predicted output as the input to the next prediction, the neural network result is virtually worthless. Also, the results differ greatly every time I re-train the network - i.e. it seems the results are very dependent on the initial weights.
I am not sure if this is a problem of overtraining? Any help would be greatly appreciated.
Sam
5 commentaires
Geoff
le 29 Juin 2012
Are you using neural net output as a predictor DURING training? Or do you train with the target value at T-1 and then synthesize that using the neural net once trained? I would opt for the latter.
Sam harris
le 1 Juil 2012
Muhammad Qamar RAZA
le 30 Août 2012
dear, any one knows how i can add or call particle swarm optimization pso training method or other training method In neural network toolbox
Greg Heath
le 4 Sep 2012
Please post this as a new question.
Greg Heath
le 4 Sep 2012
How many data points? How many hidden nodes? Is there a validation set for stopping? Do you get the same type of performace from a matlab demo data set?
Réponse acceptée
Plus de réponses (1)
Greg Heath
le 30 Juin 2012
For the fitting net I assume you are using
x =[input(:,2:end); target(:,1:end-1)];
t = target(:,2:end);
size(input) = ?
size(target) = ?
numHidden = ?
net.divideParam = ?
R2trn ~ 0.985
R2val = ?
R2tst = ?
How is the timeseries net configured? Please include code.
Hope this helps.
Greg
3 commentaires
Sam harris
le 2 Juil 2012
Greg Heath
le 3 Juil 2012
You didn't answer my questions.
Greg
Sam harris
le 3 Juil 2012
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!