I wanna do simulation by using pre trainned model(agnet).
How should I do ? And Is there a way to check if I can use the trained model (display of training manager, etc.)?
Is it possible to extract observation data from the model?
agentOptions = rlSACAgentOptions;
agentOptions.SampleTime = Ts;
agentOptions.DiscountFactor = 0.5;
agentOptions.TargetSmoothFactor = 1e-3;
agentOptions.ExperienceBufferLength = 1e6;
agentOptions.MiniBatchSize = 1024;
agentOptions.EntropyWeightOptions.TargetEntropy = -1;
agent = rlSACAgent(actor,[critic1 critic2],agentOptions);
trainingOptions = rlTrainingOptions(...
'MaxEpisodes',maxepisodes,...
'MaxStepsPerEpisode',maxsteps,...
'Plots','training-progress',...
'StopTrainingCriteria','AverageReward',...
'StopTrainingValue',Inf,...
'ScoreAveragingWindowLength',10);
load("K35_cal2_joint1_60.mat","agent")
trainingStats = train(agent,env,trainingOptions);