AggregateBayesianOptimization
Description
An AggregateBayesianOptimization
object contains
the aggregate results of multiple hyperparameter optimization problems that have the same
optimization settings but different constraint bounds. The object is an optional output
argument of any fitting function, such as fitcdiscr
, that accepts the HyperparameterOptimizationOptions
name-value argument.
Creation
Create an AggregateBayesianOptimization
object by
calling a fitting function in the list below with the
OptimizeHyperparameters
and
HyperParameterOptimizationOptions
name-value arguments and specifying to
return hyperparameter optimization results. You must set ConstraintBounds
and ConstraintType
in the structure or HyperparameterOptimizationOptions
object that you pass to the
HyperParameterOptimizationOptions
name-value argument of the fitting
function.
Classification fitting functions:
fitcdiscr
,fitcecoc
,fitcensemble
,fitcgam
,fitckernel
,fitcknn
,fitclinear
,fitcnb
,fitcnet
,fitcsvm
,fitctree
,fitcauto
Regression fitting functions:
fitrensemble
,fitrgam
,fitrgp
,fitrkernel
,fitrlinear
,fitrnet
,fitrsvm
,fitrtree
,fitrauto
For example,
[Mdl,hpoResults]=fitcecoc(X,Y,OptimizeHyperparameters="all",HyperparameterOptimizationOptions=hpoObject)
fits a multiclass ECOC model using the predictors X and the class labels Y, optimizes all
eligible model hyperparameters using the options and constraint bounds in the
HyperparameterOptimizationOptions
object hpoObject
,
and returns the trained model Mdl
and the AggregateBayesianOptimization
object hpoResults
.
Properties
Object Functions
Examples
Version History
Introduced in R2024b