Deep Learning Custom Training Loop

3 次查看(过去 30 天)
jiayi
jiayi 2023-4-18
If I want to use matlab to strengthen learning and interact with the experimental environment, can I get data with sim function?
out=sim(agent, env);
for stepCt = 1:maxSteps
% Append experience to replay memory buffer.
myBuffer.observations=out.Observation.observations.Data(:,:,1:myBuffer.bufferSize-1);
myBuffer. nextObservation=out.Observation.observations.Data(:,:,2:myBuffer.bufferSize);
myBuffer.action =out.Action.force.Data;
myBuffer.reward = out.Reward.Data;
myBuffer.isDone = out.IsDone.Data;

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by