How can I initialise ''bayesopt'' when I use multiple workers?

1 回表示 (過去 30 日間)
Omar Mahfoze
Omar Mahfoze 2018 年 4 月 23 日
コメント済み: Omar Mahfoze 2018 年 4 月 23 日
I need to run bayesopt in parallel which works fine when it starts from scratch. However, when I load the previous results to initialise the optimisation process, it only loads the initial parameters and the objective function, then it terminates. could you please help me to fix it. A sample code is attached

採用された回答

Don Mathis
Don Mathis 2018 年 4 月 23 日
編集済み: Don Mathis 2018 年 4 月 23 日
Hi Omar,
This is a known bug that was fixed in version R2018a. To fix this in R2017b, you'll need to replace 2 source files in your MATLAB installation with the attached files. The files are
[matlabroot]\toolbox\stats\bayesoptim\BayesianOptimization.m
[matlabroot]\toolbox\stats\bayesoptim\+bayesoptim\BayesoptOptions.m
where [matlabroot] is what you get when you type the command 'matlabroot' into MATLAB.
If you don't have permissions to replace those files in Windows, you can use the MATLAB editor to replace their contents. To get Administrator privileges in MATLAB for Windows, start MATLAB by right-clicking on it and choosing "Run as Administrator".
After you replace both of those files, restart MATLAB.
  1 件のコメント
Omar Mahfoze
Omar Mahfoze 2018 年 4 月 23 日
Thanks so much. Problem Solved

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModel Building and Assessment についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by