Return user data from bayesopt
2 ビュー (過去 30 日間)
古いコメントを表示
Pablo García Auñón
2017 年 9 月 26 日
コメント済み: Pablo García Auñón
2017 年 9 月 26 日
I am using bayesopt to minimize an objective function. Besides the minimum value of the function, I would like to have addintional information generated inside it when the minimization is completed. A simplified problem would be:
x = optimizableVariable('x',[0,10]);
f_eval = @(x)fun(x);
results = bayesopt(f_eval,x);
function [fitness,userData] = fun(x)
fitness = x.x^2 - 2*x.x + 1;
userData = x.x^3;
end
So I would like to see inside results the value of userData for which x results in a minimum fitness function.
Any idea how to do it?
Thanks!! Pablo
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Model Building and Assessment についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!