bayesopt関数で使われているARD Matérn 5/2 カーネルのハイパーパ​ラメータは逐次最適化​されているのでしょう​か?

実験パラメータをbayesopt関数を用いて最適化したいのですが、そこで使われているARD Matérn 5/2 カーネルのハイパーパラメータがいつ最適化されているのか知りたいです。また、ハイパーパラメータが逐次最適化されている場合、そのハイパーパラメータの値を知りたいのですが出力可能でしょうか?

 Accepted Answer

可能です。
カスタム出力関数を定義する必要があります。
上のリンクにある例題で言えば、以下の修正を加えることでカーネル関数のハイパーパラメーターを確認できます。
case 'iteration'
if results.MinObjective < 0.13
stop = true;
end
figure(h)
tms = results.IterationTimeTrace;
plot(1:numel(tms),tms','x-')
xlabel('Iteration Number')
ylabel('Time for Iteration')
title('Time for Each Iteration')
drawnow
%* カーネル関数のハイパーパラメーター
gp = results.ObjectiveFcnModel.Model;
kparams = gp.KernelInformation.KernelParameters;
また、グローバル変数を利用して、出力関数が呼ばれるたびに、ハイパーパラメーターを(毎回)保存することも可能です。
以下のリンクもご参考ください。

More Answers (0)

Categories

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

Products

Release

R2021a

Tags

Community Treasure Hunt

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

Start Hunting!