Get this error when trying to open reinforcement learning manager: Unable to open the requested feature. Check your intern Error code: -108 Error message: ERR_ADDRESS_INVALID
Show older comments
I am using the bayesopt function to optimize my hyperparameters for a reinforcement learning agent. The agent works on a simscape model of a robot. These functions all work well together but are very slow.
I decided to add a parallel process to it to help speed it up however this is the error I keep getting. Im fairly confident I have set everything up correctly I am sure it has something to do with the parallel process toolbox because when i take it away it works fine.
Any ideas what could be the cause of this?
Here is the code that sets up my bayesopt and parallel process workers for reference!
Thanks for the help!
try
parpool(2);
catch
disp('parpool already active')
end
disp('Parallel Process Workers Enabled')
vars = [
optimizableVariable('DiscountFactor', [.9,.9999999], 'Type', 'real');
optimizableVariable('EntropyWeight', [1e-1, 1e3], 'Type', 'real');
optimizableVariable('LearningRate', [1e-7, 1e-1], 'Type', 'real');
optimizableVariable('MiniBatchSize', [32, 256], 'Type', 'real');
optimizableVariable('ExperienceBufferLength', [1e3, 1e6], 'Type', 'real');
optimizableVariable('Weight1', [1e-1,1e3], 'Type', 'real');
optimizableVariable('Weight2', [1e-1,1e3], 'Type', 'real');
optimizableVariable('Weight3', [1e-1,1e3], 'Type', 'real');
optimizableVariable('Weight4', [1e-1,1e3], 'Type', 'real');
optimizableVariable('Weight5', [1e-1,1e3], 'Type', 'real');
optimizableVariable('Weight6', [1e-1,1e3], 'Type', 'real');
];
numEvals = 50; % Number of Bayesian optimization iterations
bayes_results = bayesopt(@optimization_objective, vars, ...
'MaxObjectiveEvaluations', numEvals, ...
'AcquisitionFunctionName', 'expected-improvement-plus',...
'UseParallel',true);
Accepted Answer
More Answers (0)
Categories
Find more on Reinforcement Learning Toolbox 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!