bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType > Struct Template Reference

#include <a2c_monitor.h>

Public Types

typedef StateType state_type
typedef ActionType action_type
typedef std::tuple< state_type, action_type, real_t, bool, torch_tensor_t, torch_tensor_t > experience_tuple_type
typedef bitrl::utils::ExperienceBuffer< experience_tuple_type > experience_buffer_type

Public Member Functions

void reset () noexcept
template<typename T, uint_t index>
std::vector< T > get (const std::vector< experience_tuple_type > &experience) const

Public Attributes

std::vector< real_t > rewards
 monitor
std::vector< real_t > policy_loss_values
std::vector< real_t > critic_loss_values
std::vector< uint_t > episode_duration

Member Typedef Documentation

◆ action_type

template<typename ActionType, typename StateType>
typedef ActionType bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::action_type

◆ experience_buffer_type

template<typename ActionType, typename StateType>
typedef bitrl::utils::ExperienceBuffer<experience_tuple_type> bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::experience_buffer_type

◆ experience_tuple_type

template<typename ActionType, typename StateType>
typedef std::tuple<state_type, action_type, real_t, bool, torch_tensor_t, torch_tensor_t > bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::experience_tuple_type

◆ state_type

template<typename ActionType, typename StateType>
typedef StateType bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::state_type

Member Function Documentation

◆ get()

template<typename ActionType, typename StateType>
template<typename T, uint_t index>
std::vector< T > bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::get ( const std::vector< experience_tuple_type > & experience) const

◆ reset()

template<typename ActionType, typename StateType>
void bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::reset ( )
noexcept

Member Data Documentation

◆ critic_loss_values

template<typename ActionType, typename StateType>
std::vector<real_t> bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::critic_loss_values

◆ episode_duration

template<typename ActionType, typename StateType>
std::vector<uint_t> bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::episode_duration

◆ policy_loss_values

template<typename ActionType, typename StateType>
std::vector<real_t> bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::policy_loss_values

◆ rewards

template<typename ActionType, typename StateType>
std::vector<real_t> bitrl::rl::algos::pg::A2CMonitor< ActionType, StateType >::rewards

monitor


The documentation for this struct was generated from the following file: