This program uses the TD3 RL technique to train an agnet for the pong game.
It is the same as the original one developed by Johanna Pingel (a MATLAB staff and blogger) with the following changes:
1. Another state is added to the observation-state vector called q8 with the equation: q8 = abs(ball_x-paddle_x)
2. TD3 is used instead of DDPG
3. rng is added to use the same random noise at each time the agent is trained (for comparison)
Original code:
引用格式
Ismael Abdulrahman (2024). Improved Version of the Pong Game Using RL TD3 (https://www.mathworks.com/matlabcentral/fileexchange/101629-improved-version-of-the-pong-game-using-rl-td3), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2021b
兼容 R2021a 到 R2021b 的版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!