Using bayesopt instead of fmincon in Matlab example of "Solving Burgers PDE with Deep Learning

조회 수: 2 (최근 30일)
Hello everyone,
I am trying to understand how to solve PDE with PINNs using different optimization methods. in this example (https://www.mathworks.com/help/releases/R2022b/deeplearning/ug/solve-partial-differential-equations-with-lbfgs-method-and-deep-learning.html)
the fmincon and L-BFGS are used to optimize the hyperparameters of the PINN. Actually I am trying to solve this example using the bayesopt but I do not have clue how to replace fmincon.
I hava read the documentation of bayesopt
But what is not clear to me is how to make the hyperparameters of PINNs in this example like neurons, weights and biases to be optimizable variables?
Thanks in advance.
  댓글 수: 4
Alan Weiss
Alan Weiss 2023년 4월 23일
I don't know how many optimizable variables your model has now. If just a dozen or so then yes, you can use bayesopt, though I am not sure why you would want to. What do you hope to gain? bayesopt is much, much slower than fmincon and cannot use derivative information. Do you suspect that there are multiple local minima? If so, you would almost certainly be better advised to use MultiStart with fmincon instead of bayesopt. But do what you want.
Alan Weiss
MATLAB mathematical toolbox documentation
Muhammad Mahmoud
Muhammad Mahmoud 2023년 4월 24일
In fact, I do suspect multiple local minimums, but not in the present case. I simply wish to use this example to solve another PDE of the "Advection-Diffusion-Reaction" type. Also, I do not know based on what criteria the number of layers and number of neurons in this example would be selected, so I used bayesopt to find the optimal combination of number of layers and number of neurons. Many thanks for your helpful advices and insightful suggestions.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Model Building and Assessment에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by