フィルターのクリア

fitcensemble optimize hyperparameters without showing plots

7 ビュー (過去 30 日間)
Inna Pelloso
Inna Pelloso 2022 年 4 月 27 日
コメント済み: Inna Pelloso 2023 年 8 月 23 日
Hi,
I am fitting an ensemble of learners for classification, and optimizing the hyperparamers (using the 'auto' selection):
fitcensemble(X,Y,'OptimizeHyperparameters','auto')
This works correctly. How can I run the same command, while suppressing all the optimization plots? I am trying the following, but without success
fitcensemble(X,Y,'OptimizeHyperparameters','auto', struct('ShowPlots',0))
Any help would be apprecaited! Thank you,
IP

採用された回答

Walter Roberson
Walter Roberson 2022 年 4 月 27 日
fitcensemble(X,Y,'OptimizeHyperparameters','auto', 'HyperparameterOptimizationOptions', struct('ShowPlots',0))
  3 件のコメント
michael dupin
michael dupin 2023 年 8 月 23 日
Thank you indeed!
Just putting it out there: if you already have a struct in your command, just add the pair ShowPlots and 0 within it and it works like a charm!
Mdl_0 = fitcensemble(train_input,train_outcomedata, 'OptimizeHyperparameters','auto', 'Learners',t,'HyperparameterOptimizationOptions', struct('AcquisitionFunctionName', 'expected-improvement-plus','ShowPlots',0));
Inna Pelloso
Inna Pelloso 2023 年 8 月 23 日
Thank you! Appreciate your insight!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by