![Screenshot 2023-08-17 at 14 52 45](https://private-user-images.githubusercontent.com/7775973/261313853-445db7d8-3643-4f57-b8dc-9c914475283b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5NjIwNDcsIm5iZiI6MTcyNTk2MTc0NywicGF0aCI6Ii83Nzc1OTczLzI2MTMxMzg1My00NDVkYjdkOC0zNjQzLTRmNTctYjhkYy05YzkxNDQ3NTI4M2IucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTBUMDk0OTA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzU3ODVlZTYyMTliOTk4ODcyZTU2Y2ViMjZiNDFjN2Y2ZWE4ZGVmNDhhMTYyY2ZkMjAyNjhkZDMxOTFiNTY1YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.S2ijx8QpaUq5_N3kJFPqGzeRbjZkqzHajaR0ne2RbKM)
![Screenshot 2023-08-17 at 14 55 55](https://private-user-images.githubusercontent.com/7775973/261314691-78a75126-3f3d-4f62-8682-80ca84658b27.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5NjIwNDcsIm5iZiI6MTcyNTk2MTc0NywicGF0aCI6Ii83Nzc1OTczLzI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eHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWJkZDZkMmQ0MDYxZDI1OWFjMTRmYWI0NzEyZTY0MDZiMWI3OGUzMzAzMjQ0NWY0OTkyZTE3ZTFkMWRmNjAwOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.7H_3xAc3g7fTCXQ8jdQZqBmtMKbgLQichyScwKxtPhU)
In the Pendulum-v1
environment, the best possible reward is 0.
Here are some thoughts to enhance the performance of DDPG on Pendulum-v1
:
-
More Training: DDPG typically requires a lot of training to converge stably. Try increasing the training episodes, perhaps to 1000 or more.
-
Network Architecture & Hyperparameters: Experiment with different network architectures or adjust hyperparameters, like learning rates, optimizers, discount factors, soft update parameters, etc. Hyperparameter tuning is common and often necessary in deep reinforcement learning.
-
Exploration: DDPG uses a deterministic policy, but to boost exploration, we added some noise. Try different types and magnitudes of noise to enhance performance.
-
Replay Buffer: Ensure to have a sufficiently large replay buffer and use uniform sampling. Consider using priority replay, where more critical transitions have a higher chance of being sampled.
-
Target Network Update Frequency: Try updating the target networks more frequently or less often.
-
Learning Rate Scheduling: Using different learning rates at different stages of training could be beneficial. For instance, start with a higher learning rate and gradually decrease it over time.
When tweaking the model, change only one parameter and then evaluate performance, so we can better understand the impact of each adjustment.
now , I will try TD3 and SAC.