How to plot the curve of loss function in reinforcement learning

Hello everyone,
I'm training an agent to complete the path planning task, but the result is not very good, so I want to see the curve of the loss function. How can I plot the curve?

 Accepted Answer

Plese refer to the documentation link attached below which contains an example involving "Training Reiforcement Learning Policy Using Custom Training Loop" and then plotting it.

More Answers (0)

Products

Release

R2020b

Community Treasure Hunt

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

Start Hunting!