97 std::ostream &
print(std::ostream &out)
const;
107 return opts.
print(out);
std::ostream & operator<<(std::ostream &out, const A2CConfig &opts)
Definition a2c_config.h:117
Definition dp_algo_base.h:15
Definition dummy_agent.h:9
Various utilities used when working with RL problems.
Definition bitrl_log.h:25
std::size_t uint_t
uint_t
Definition bitsim_types.h:40
double real_t
real_t
Definition bitsim_types.h:20
DeviceType
Enumeration of various device types.
Definition bitsim_types.h:186
The PPOConfig struct. Configuration for PPOSolver class.
Definition ppo_config.h:26
real_t epsilon
The epsilon factor to use.
Definition ppo_config.h:36
real_t clip_epsilon
Definition ppo_config.h:75
bool clip_policy_grad
Flag indicating whether to clip the policy grad.
Definition ppo_config.h:41
uint_t n_episodes
Number of training episodes.
Definition ppo_config.h:61
std::string save_model_path
Definition ppo_config.h:90
real_t max_grad_norm_policy
The value to clip the gradient for the policy.
Definition ppo_config.h:51
uint_t max_itrs_per_episode
Number of iterations per episode.
Definition ppo_config.h:66
real_t max_grad_norm_critic
The value to clip the gradient for the actor.
Definition ppo_config.h:56
DeviceType device_type
Definition ppo_config.h:85
bool clip_critic_grad
Flag indicating whether to clip the critic grad.
Definition ppo_config.h:46
bool normalize_advantages
Definition ppo_config.h:80
uint_t max_passes_over_batch
Definition ppo_config.h:73
std::ostream & print(std::ostream &out) const
print
uint_t buffer_size
How large the experince buffer should be.
Definition ppo_config.h:71
void load_from_json(const std::string &filename)
Load the configuration from the given json file.
real_t gamma
Discount factor.
Definition ppo_config.h:31