Bayesian optimization with fixed 'Method' for fitcensemble

9 次查看(过去 30 天)
I want to optimize an ensemble classification model with Bayesian optimization.
cvpt = cvpartition(Y_train , "KFold" , 5)
opt = struct("CVPartition" , cvpt , "MaxObjectiveEvaluations" , 20)
Mdl = fitcensemble(X_train , Y_train , "OptimizeHyperparameters", "auto" , "HyperparameterOptimizationOptions" , opt)
However, I want to use 'AdaBoostM2' as 'Method' and optimize all the other hyperparameters. How do I specify this?

回答(1 个)

Alan Weiss
Alan Weiss 2022-1-19
编辑:Alan Weiss 2022-1-19
Mdl = fitcensemble(X_train , Y_train ,...
"OptimizeHyperparameters", {'NumLearningCycles','LearnRate'} ,...
"HyperparameterOptimizationOptions" , opt,...
"Method","AdaBoostM2")
Alan Weiss
MATLAB mathematical toolbox documentation

类别

Help CenterFile Exchange 中查找有关 Classification Ensembles 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by