|
bitsim
Model, simulate, estimate and control robots in C++
|
The A2CConfig struct. Configuration for A2CSolver class. More...
#include <a2c_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 | lambda {0.1} |
| GAE lambda. | |
| real_t | beta {0.0} |
| Coefficient for accounting for entropy contribution. | |
| real_t | policy_loss_weight {1.0} |
| policy_loss_weight. How much weight to give on the policy loss when forming the global loss | |
| real_t | value_loss_weight {1.0} |
| 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} |
| bool | normalize_advantages {true} |
| DeviceType | device_type {DeviceType::CPU} |
| std::string | save_model_path {""} |
| void bitrl::rl::algos::pg::A2CConfig::load_from_json | ( | const std::string & | filename | ) |
Load the configuration from the given json file.
| std::ostream & bitrl::rl::algos::pg::A2CConfig::print | ( | std::ostream & | out | ) | const |
| out |
Coefficient for accounting for entropy contribution.
| bool bitrl::rl::algos::pg::A2CConfig::clip_critic_grad {false} |
Flag indicating whether to clip the critic grad.
| bool bitrl::rl::algos::pg::A2CConfig::clip_policy_grad {false} |
Flag indicating whether to clip the policy grad.
| DeviceType bitrl::rl::algos::pg::A2CConfig::device_type {DeviceType::CPU} |
Discount factor.
GAE lambda.
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.
policy_loss_weight. How much weight to give on the policy loss when forming the global loss
| std::string bitrl::rl::algos::pg::A2CConfig::save_model_path {""} |