How to train new Rl Algorithm with Parallel Computing? I got the error:Parallel training is not supported for this agent

조회 수: 12 (최근 30일)
I successfully run the Algorithm called PIBB, buet I got the error when i want to run it parallel
错误使用 rl.agent.CustomAgent/checkAgentTrainOptionsCompatible_
Parallel training is not supported for this agent. Set 'trainingOptions.Parallelization' to 'none'.
出错 rl.agent.AbstractAgent/checkAgentTrainOptionsCompatible (128 )
trainingOptions = checkAgentTrainOptionsCompatible_(this, trainingOptions);
出错 rl.agent.AbstractAgent/train (75 )
trainingOptions = checkAgentTrainOptionsCompatible(this, trainingOptions);
出错 MyTrain (33 )
trainResults = train(agent,env,opt);

답변 (1개)

Sanjana
Sanjana 2023년 3월 27일
Hi,
I understand that you're encountering difficulties while using parallel processing to train a custom defined RL agent in MATLAB.
To resolve the issue, I suggest that you follow these steps:
  • Verify that you have installed the Parallel Computing Toolbox on your system. You can check this by typing "ver" in the Command Window, which will display all the installed products and their versions. Look for the Parallel Computing Toolbox in the list
  • Ensure that the "trainingOptions" to train the agent are correctly defined, specifically, the "useParallel" option must be set to true. This will configure the training process to use parallel processing. Additionally, you can specify the options for parallel training using "ParallelizationOptions"
  • For further assistance, I recommend referring to the following links:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Reinforcement Learning에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by