Bayesian optimization with fixed 'Method' for fitcensemble

9 visualizaciones (últimos 30 días)
Dylan den Hartog
Dylan den Hartog el 19 de En. de 2022
Editada: Alan Weiss el 19 de En. de 2022
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?

Respuestas (1)

Alan Weiss
Alan Weiss el 19 de En. de 2022
Editada: Alan Weiss el 19 de En. de 2022
Mdl = fitcensemble(X_train , Y_train ,...
"OptimizeHyperparameters", {'NumLearningCycles','LearnRate'} ,...
"HyperparameterOptimizationOptions" , opt,...
"Method","AdaBoostM2")
Alan Weiss
MATLAB mathematical toolbox documentation

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by