Is there a good way to use the Optuna hyperparameter optimization framework in MATLAB?

조회 수: 25 (최근 30일)
As we all know, Optuna is a well-regarded hyperparameter optimization framework that is independent of any machine learning framework and is very easy to use in Python. However, my cost object-function is in MATLAB, which typically belongs to black-box optimization, and I am unsure how to use the Optuna library.
I also know that the Statistics and Machine Learning Toolbox has techniques like random search, grid search, and Bayesian hyperparameter optimization, but they haven't performed very well. The Global Optimization Toolbox can use heuristic search algorithms such as GA and PSO, but I am limited by the high computational cost of the cost function. I also tried surrogateopt. Although the iteration speed is relatively fast, it tends to get stuck in local optima, causing subsequent iterations to nearly stop. Overall, it doesn't perform as well as the PSO algorithm! Therefore, I would like to explore the performance of the Optuna library.

채택된 답변

cui,xingxing
cui,xingxing 2025년 1월 23일
After exploration and investigation, it is regrettable that MATLAB currently cannot effectively pass the handle of the optimization objective function to the Optuna framework, especially for complex objective functions that may involve passing extra parameter data. However, for passing ordinary general data, most built-in types can be smoothly exchanged between MATLAB and Python.
I believe that in the future, MATHWORKS will enhance considerations in this area!
  댓글 수: 2
Andreas Goser
Andreas Goser 2025년 1월 23일
Thank you for feeding your finding back to the community. I have looked into two MathWorks-internal databases and cannot find knowledgebase articles or enhancement requests in that space. But maybe I am searching incorrectly as I am not a domain expert.
When you write "I believe that in the future" - have you discussed your need with a MathWorks person and this person will create and enhancement request? Or did you intend to write "I hope"? Then I would recommend contactin Techncal Support so this enhancement request can be logged.
cui,xingxing
cui,xingxing 2025년 1월 23일
Thank you for your attention to my question. This enhancement requests was not submitted to Technical Support; it was a spontaneous “expectation” on my part that led to your misunderstanding. I apologize for that. Could you help me submit this feature request? As an internal member, you may have an easier time getting support than I do.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Third-Party Cluster Configuration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by