Adapt and sim produces very different outputs
Mostra commenti meno recenti
Hello!
I'm playing around with Neural Network Toolbox, and I'm trying to use a custom network for time series predictions. My problem is that adapt and sim produces completely different outputs, so while my error is relatively low during training (adapt) it's large while is try to use the network with sim. In fact the outputs also looks completely different plotted. I'm using the same network, same data, the only difference as follows:
[instance.net, predictions, errors, instance.final_inputs, instance.final_layer, instance.results] = adapt(instance.net, dataIn.inputs_shifted, dataIn.targets_shifted , dataIn.inputs_initial, dataIn.layer_initial);
[predictions, instance.final_inputs, instance.final_layer, errors, instance.results] = sim(instance.net, dataIn.inputs_shifted, dataIn.inputs_initial, dataIn.layer_initial, dataIn.targets_shifted);
One more thing, that i'm doing all preprocessing manually, so instance.net.inputs{1}.processFcns is empty for all inputs and connections.
Can anyone please help me?
Risposta accettata
Più risposte (1)
Greg Heath
il 22 Mag 2012
1 voto
ADAPT is a learning algorithm that updates weights after the presentation of each input vector. Therefore, each output corresponds to a different input vector and a different set of weights.
SIM is a calculation algorithm for a net with fixed weights. Therefore, each output corresponds to a different input vector but the same set of weights.
Hope this helps.
Greg
Categorie
Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!