How to use MATLAB's neural network tool box for minibatch gradient descent?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ekta Prashnani
am 17 Feb. 2016
Kommentiert: Greg Heath
am 4 Mär. 2016
Hi,
I want to learn the functional relationship between a set of input-output pairs. Each input is a vector of length 500 and the output is a scalar value. I have 1 million such input output pairs and the disk space is not enough to train on this entire batch of data at once (using a GPU).
Is there a way to perform mini-batch training in matlab? This question has been asked in the past ( http://www.mathworks.com/matlabcentral/answers/254826-matlab-neural-network-mini-batch-training ) but there was no reply.
I am aware of the function "adapt", which updates the network with each incoming input-output pair, but I want to perform training in a mini-batch. Are there any options to do so using the MATLAB Neural Network toolbox?
Please help me out, Ekta
0 Kommentare
Akzeptierte Antwort
Greg Heath
am 18 Feb. 2016
True to his word, Dr. Heath has posted
http://www.mathworks.com/matlabcentral/newsreader/view_thread/344511#943659
Hope this helps
Thank you for formally accepting my answer
Greg
2 Kommentare
Greg Heath
am 4 Mär. 2016
Maybe a good programmer can optimize the code. The logic is straightforward.
Good Luck,
Greg
Weitere Antworten (1)
Greg Heath
am 17 Feb. 2016
There is no problem; Train in a loop. However, do not configure or initialize the net between the minibatches of training data.
Hope this helps.
Thank you for formally accepting my answer
Greg
4 Kommentare
Greg Heath
am 18 Feb. 2016
No, it looks like I was wrong. As far as searching mathworks for minibatch info, I get the following number of hits
NEWSGROUP ANSWERS
minibatch 0 3
mini-batch 0 6 (includes above 3)
I will see if I can structure the guts of a naive minibatch code and post in the NEWSGROUP.
Greg
Siehe auch
Kategorien
Mehr zu Image 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!