Is it possible to change the objective function in fitctree(X,Y,'OptimizeHyperparameters','auto')?
12 views (last 30 days)
Show older comments
I would like to use Gmean as object function of hyperparameter optimization. I thought about creating a own kfold loss function with kfoldfun. I don't know if it is possible to pass this the created loss function to 'OptimizeHyperparameters' with a 'gridsearch' or 'randomsearch'. Is this possible in some way or do I have to code a hyperparameteroptimization on my own?
I have already figured it out how to do it with bayesopt. But I would also try a 'gridsearch' and a 'randomsearch'.
Best regards,
Jan
0 Comments
Answers (1)
Don Mathis
on 8 Jan 2017
You can't change the objective function used to optimize hyperparameters in fitctree.
However, you can do grid search and random search using bayesopt by passing 'AcquisitionFunctionName','grid' or 'AcquisitionFunctionName','random', respectively. Grid search explores the grid in a random order using sampling without replacement.
0 Comments
See Also
Categories
Find more on Model Building and Assessment in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!