How to update the weights of a Shallow neural network by supplying one sample at a time?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to use a shallow neural network inside a simulation loop. Every loop will generate a new input that is used to update the weights of the neural network. This online training of a shallow network.
To clarify, I am not asking how to use concurrent nerual network, or reinforcement learning. I am just asking how to make the shallow neural network perform one backprobagation operation based on one desired output. Nothing more. Thanks.
1 Kommentar
Emmanouil Tzorakoleftherakis
am 9 Jan. 2024
By the way, if you are willing to try a packaged solution, please take a look at this example that shows how to train a neural state space model.
Antworten (1)
Venu
am 25 Dez. 2023
Bearbeitet: Venu
am 25 Dez. 2023
You can refer to the documentation below to start with.
To perform online training of a shallow neural network in MATLAB by supplying one sample at a time and updating the weights based on that sample, you can use the "adapt" function.
The "adapt" function is designed to perform online updates to the network weights and biases according to the specified training function (example "traingd") for each new input-target pair.
Read the "adapt" documentation for more understanding.
help adapt
doc adapt
Hope this helps
1 Kommentar
Siehe auch
Kategorien
Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!