Why 'OptimizeHyperparameters' in fitcknn doesn't provide the 3D plot as it says in the documentation?
조회 수: 4 (최근 30일)
이전 댓글 표시
Dear all,
do you know how can I get the plot of the objective function model when I run a hyperparameters optimization with two hyperparameters (bayesian as default)?
It seems, from the documentation, that this plot should be generated automatically and indeed this happens if I use the data in the documentation example, but it doesn't with mine.
Thank you in advance,
Marta
댓글 수: 2
Alan Weiss
2019년 1월 25일
We don't know what you did. Please show us your function call and option settings, and then maye we will be able to advise you.
Alan Weiss
MATLAB mathematical toolbox documentation
답변 (1개)
Alan Weiss
2019년 1월 25일
Thanks for the information. As stated in the HyperparameterOptimizationOptions reference section, ".... If [you set the option to show plots to] true, this field plots the best objective function value against the iteration number. If there are one or two optimization parameters, and if Optimizer is 'bayesopt', then ShowPlots also plots a model of the objective function against the parameters."
In other words, since you are choosing to optimize all hyperparameters, and there are five hyperparameters, then there is no way to give the plot you want. You get that plot when you optimize just one or two hyperparameters.
Alan Weiss
MATLAB mathematical toolbox documentation
참고 항목
카테고리
Help Center 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

