|
bitsim
Model, simulate, estimate and control robots in C++
|
The PPOConfig struct. Configuration for PPOSolver class. More...
#include <ppo_config.h>
Public Member Functions | |
| std::ostream & | print (std::ostream &out) const |
| print | |
| void | load_from_json (const std::string &filename) |
| Load the configuration from the given json file. | |
Public Attributes | |
| real_t | gamma {0.99} |
| Discount factor. | |
| real_t | epsilon {0.01} |
| The epsilon factor to use. | |
| bool | clip_policy_grad {false} |
| Flag indicating whether to clip the policy grad. | |
| bool | clip_critic_grad {false} |
| Flag indicating whether to clip the critic grad. | |
| real_t | max_grad_norm_policy {1.0} |
| The value to clip the gradient for the policy. | |
| real_t | max_grad_norm_critic {1.0} |
| The value to clip the gradient for the actor. | |
| uint_t | n_episodes {100} |
| Number of training episodes. | |
| uint_t | max_itrs_per_episode {100} |
| Number of iterations per episode. | |
| uint_t | buffer_size {100} |
| How large the experince buffer should be. | |
| uint_t | max_passes_over_batch {4} |
| real_t | clip_epsilon {0.5} |
| bool | normalize_advantages {true} |
| DeviceType | device_type {DeviceType::CPU} |
| std::string | save_model_path {""} |
| void bitrl::rl::algos::pg::PPOConfig::load_from_json | ( | const std::string & | filename | ) |
Load the configuration from the given json file.
| std::ostream & bitrl::rl::algos::pg::PPOConfig::print | ( | std::ostream & | out | ) | const |
| out |
How large the experince buffer should be.
| bool bitrl::rl::algos::pg::PPOConfig::clip_critic_grad {false} |
Flag indicating whether to clip the critic grad.
| bool bitrl::rl::algos::pg::PPOConfig::clip_policy_grad {false} |
Flag indicating whether to clip the policy grad.
| DeviceType bitrl::rl::algos::pg::PPOConfig::device_type {DeviceType::CPU} |
The epsilon factor to use.
Discount factor.
The value to clip the gradient for the actor.
The value to clip the gradient for the policy.
Number of iterations per episode.
Number of training episodes.
| std::string bitrl::rl::algos::pg::PPOConfig::save_model_path {""} |