You're right that bayesopt doesn't provide an interface for that. If you're willing to modify a source code file it can be done pretty easily. Go to line 3118 of BayesianOptimization.m
>> edit BayesianOptimization.m
It's in the function 'iFitrgpRobust'. The line looks like this:
GP = compact(fitrgp(X, Y, varargin{:}, 'SigmaLowerBound', SigmaLowerBound));
You can then add arguments to the end of this argument list. Suppose you wanted to use fitmethod 'sd' with an active set size of 300. You could do this:
GP = compact(fitrgp(X, Y, varargin{:}, 'SigmaLowerBound', SigmaLowerBound, ...
'FitMethod', 'sd', 'ActiveSetSize', 300));
By the way, would you mind sharing your reason for wanting to do this? I have a guess but I would like to hear from you. Thanks.
Best Answer