alok-ai-lab / pyDeepInsight

A python implementation of the DeepInsight methodology.
GNU General Public License v3.0
155 stars 47 forks source link

bayesopt not working #8

Closed pawkonds closed 3 years ago

pawkonds commented 3 years ago

Hello Sir. I download your repository and try to run it. When I run it locally, on laptop 'bayesopt' function starts - the graph display - but due to low parameter of the laptop Matlab crashes. I have also access to big cluster, but here is a strange problem - algorithm ends during 'bayesopt'. I even modify the code

disp('pre-bayes')

BayesObject = bayesopt(ObjFcn,optimVars,...
    'MaxObj',100,...
    'MaxTime',2*60*60,...
    'IsObjectiveDeterministic',false,...    
    'UseParallel',false);

disp('post-bayes')

and in the output file last line is 'pre-bayes'.

I checked and Matlab version on cluster is 2019b with Statistics and Machine Learning Toolbox. Additionally, the example bayesopt function from Matlab - https://www.mathworks.com/help/stats/bayesopt.html is working on cluster just fine.

Do you have any ideas what could be a problem?

Sincerely, Pawel

alok-ai-lab commented 3 years ago

Hi Pawel What is your error? I think in file makeObjFcn2.m, under trainingOptions the variable 'Execution Environment' is set as 'multi-gpu'. It is possible that your laptop does not support this environment and perhaps that's why crashing.

You may need to set 'Execution Environment' according to your hardware specifications. If your laptop has only CPU then set it as 'cpu' or 'auto'. Please check more details at https://www.mathworks.com/help/deeplearning/ref/trainingoptions.html

Just for testing, please reduce 'MaxObj' to 2 (from 100).

Best wishes

pawkonds commented 3 years ago

Sir thank you a lot! 'multi-gpu' was the problem. My laptop is too 'soft' for that algorithm and on cluster I was using CPU query.

Thank you one more time!

Best regards