How is the ‘optimal network depth’ of the model determined using BayesOpt in MATLAB?
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2021년 1월 14일
답변: MathWorks Support Team
2021년 1월 14일
Based on the "Deep Learning Using Bayesian Optimization" documentation and example:
I would like to know how does Bayesian optimization find the optimal network depth of the network using BayesOpt?
채택된 답변
MathWorks Support Team
2021년 1월 14일
Bayesian Optimization tries to find the best parameter values(eg. Network section depth) that minimizes the value of the objective function (neural network loss function) in a bounded domain (parameter range). Bayesian Optimization consists of two main components: a Bayesian statistical model and an acquisition function. The Bayesian statistical model, also referred to as the surrogate model, is used for approximating the objective function: it provides a Bayesian posterior probability distribution that describes potential values for the objective function at any candidate point. This posterior distribution is updated each time we evaluate the objective function at a hyperparameter candidate(eg. network depth). The surrogate model for Bayesian optimization in MATLAB is a Gaussian process, which defines a prior over functions that are updated in every iteration.
At every iteration we find the new hyperparameter value (optimal network depth) that maximizes the acquisition function a(x). We can simultaneously optimize multiple hyperparameters in every iteration, for eg. Network depth, l2 regularization, etc.
If you would like to understand more about the Bayesian optimization, please refer to the following links:
1. https://www.mathworks.com/help/releases/R2020b/stats/bayesian-optimization-algorithm.html
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Classification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!