MATLAB Finding Output Weight Matrix of a Recurrent Neural Network (RNN) With Stochastic Gradient Descent (SGD)
Show older comments
I'm trying to find the output weight matrix of a recurrent neural network. I currently use the following linear regression formula:
Wout = pinv(r)*TD
where r is my RNN state matrix and
is my training data set matrix.
is the pseudoinverse operation. r is a
by t matrix where D is the 1 dimensional size of my RNN and t is the number of time steps I am simulating.
is a t by N matrix where N is the number of training data collections in my training data set.
My training data is too large and is producing a bunch of NaN's and zeros in
. Rather than using linear regression, I would like to use stochastic gradient descent (SGD) to find
. What is the best way to accomplish this in MATLAB?
Accepted Answer
More Answers (0)
Categories
Find more on Tuning in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!