How to write objective function for Bayesian Optimization (bayesopt)?
조회 수: 3 (최근 30일)
이전 댓글 표시
Dear all,
I am using `bayesopt` method and I need to provide an objective function.
I have studied the https://uk.mathworks.com/help/stats/bayesian-optimization-objective-functions.html on how to write an objective function.
Where can I find more example of objective function in MATLAB?
Can anyone guide me how to write objective function for Bayesian Optimization?
Thank you
댓글 수: 0
답변 (1개)
Alan Weiss
2020년 2월 25일
There is an example here:
The link you provided really has the information you need to write an objective function. Your objective takes the table that MATLAB passes, and returns a real scalar value as the objective. The fields in the table are the optimization variables. In the example, the optimization variables are box and sigma, and the function works with x.box and x.sigma.
If you want to provide pseudocode for your objective, maybe we can help you turn it into the correct form.
Alan Weiss
MATLAB mathematical toolbox documentation
댓글 수: 2
Alan Weiss
2020년 3월 2일
I recently learned that there is an existing documentation example on this subject:
The following example shows exactly how to write the objective function for cross-validation loss:
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!