MATLAB: Error when trying to do ‘Hyperparameter Optimization’ using Parallel Computing

bayesian optimizationmachine learningMATLABOptimization Toolboxparallel computingregressionStatistics and Machine Learning Toolboxsvm

Hello,
I am trying to optimize the function fitrsvm.
But when I set 'true' to the 'UseParallel' property, I am getting a error.
This is the code:
smv_model = fitrsvm(X,y,...
'OptimizeHyperparameters','all',...
'HyperparameterOptimizationOptions',...
struct('UseParallel',true));
The error message:
Error using classreg.learning.paramoptim.parseFitoptimizingArgs>validateAndCompleteStructFields (line 171)
Unrecoginized field passed in 'HyperparameterOptimizationOptions' struct: UseParallel.
How can I solve this?
Thanks.

Best Answer

Do you have a Parallel Computing Toolbox license? If so, then please tell us what version of MATLAB you are using.
Alan Weiss
MATLAB mathematical toolbox documentation