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?
0 件のコメント
回答 (1 件)
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Classification Ensembles についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!