Experiment Manager extremely slow

Hello,
when I train a neural network it takes about 5-7 mins of computing time on my pc. When I compute it via experiment manager (bayesian optimization) it takes an hour to compute the network with the same stats... why such a huge difference?
Thanks in advance
Best

2 Comments

I have the same problem. The time is 2 times longer even worst! I wonder how to solve this problem?
I am also having the same problem even with Shallow Neural Networks! What could be the cause of this?

Sign in to comment.

 Accepted Answer

Matt J
Matt J on 4 May 2022
Edited: Matt J on 4 May 2022
But you understand, right, that when you use the Experiment Manager, your network is being retrained multiple times with different sets of hyperparameters? If as part of its search, the EM needs to test 10 sets of parameters, each requiring 5-10 min. of training, it makes sense that the whole exercise would be an hour long or more.

4 Comments

ThomasP
ThomasP on 4 May 2022
Edited: ThomasP on 4 May 2022
yes I know, I use bayesian optimization with a max amount of 30 trials, I don't mean that those 30 trials take an hour, I mean the training of one set of hyperparameters takes one hour, until all 30 are finished it will take 30 hours
I've added a picture where you can see that a single trial with specific hyperparameters takes one hour
Can you rig the Experiment Manager to execute a single trial, consisting precisely of the hyperparameter set which normallly takes you 5-7 min? Does it still take longer when you run that as an EM trial?
That is not the reason. The speed is just very low even when single experiment is conducting!
But the training time will be different for every experiment, depending on the values of the hyperparameters. Have you really done a side-by-side comparison of the exact same training experiment, both with the same choice of hyperparameters?

Sign in to comment.

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 4 May 2022

Commented:

on 8 Dec 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!