fitcensemble optimize hyperparameters without showing plots

조회 수: 5 (최근 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개)

카테고리

Help CenterFile Exchange에서 Classification Ensembles에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by