bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitrl::rl::algos::RLSolverBase< EnvType > Class Template Referenceabstract

RLAlgoBase. Base class for RL algorithms. More...

#include <rl_algorithm_base.h>

Inheritance diagram for bitrl::rl::algos::RLSolverBase< EnvType >:
Collaboration diagram for bitrl::rl::algos::RLSolverBase< EnvType >:

Public Types

typedef EnvType env_type

Public Member Functions

virtual ~RLSolverBase ()=default
 Destructor.
virtual void actions_before_training_begins (env_type &)=0
 actions_before_training_begins. Execute any actions the algorithm needs before starting the iterations
virtual void actions_after_training_ends (env_type &)=0
 actions_after_training_ends. Actions to execute after the training iterations have finisehd
virtual void actions_before_episode_begins (env_type &, uint_t)
 actions_before_training_episode
virtual void actions_after_episode_ends (env_type &, uint_t, const EpisodeInfo &)
 actions_after_training_episode
virtual EpisodeInfo on_training_episode (env_type &, uint_t)=0
 on_episode Do one on_episode of the algorithm

Protected Member Functions

 RLSolverBase ()=default
 Constructor.

Detailed Description

template<typename EnvType>
class bitrl::rl::algos::RLSolverBase< EnvType >

RLAlgoBase. Base class for RL algorithms.

Member Typedef Documentation

◆ env_type

template<typename EnvType>
typedef EnvType bitrl::rl::algos::RLSolverBase< EnvType >::env_type

Constructor & Destructor Documentation

◆ ~RLSolverBase()

template<typename EnvType>
virtual bitrl::rl::algos::RLSolverBase< EnvType >::~RLSolverBase ( )
virtualdefault

Destructor.

◆ RLSolverBase()

template<typename EnvType>
bitrl::rl::algos::RLSolverBase< EnvType >::RLSolverBase ( )
protecteddefault

Constructor.

Member Function Documentation

◆ actions_after_episode_ends()

◆ actions_after_training_ends()

template<typename EnvType>
virtual void bitrl::rl::algos::RLSolverBase< EnvType >::actions_after_training_ends ( env_type & )
pure virtual

actions_after_training_ends. Actions to execute after the training iterations have finisehd

Implemented in bitrl::rl::algos::dp::IterativePolicyEvalutationSolver< EnvType, PolicyType >, bitrl::rl::algos::dp::PolicyImprovement< EnvType, PolicyType >, bitrl::rl::algos::dp::PolicyIterationSolver< EnvType, PolicyType >, bitrl::rl::algos::dp::ValueIteration< EnvType >, bitrl::rl::algos::pg::A2CSolver< EnvType, PolicyType, CriticType >, bitrl::rl::algos::pg::ACSolverBase< EnvType, PolicyType, CriticType, MonitorType, ConfigType >, bitrl::rl::algos::pg::ACSolverBase< env_type, PolicyType, CriticType, A2CMonitor< action_type, state_type >, PPOConfig >, bitrl::rl::algos::pg::ACSolverBase< envs::ParallelEnvs< EnvType >, PolicyType, CriticType, A2CMonitor< EnvType::action_type, EnvType::state_type >, PPOConfig >, bitrl::rl::algos::pg::ACSolverBase< EnvType, PolicyType, CriticType, A2CMonitor< EnvType::action_type, EnvType::state_type >, PPOConfig >, bitrl::rl::algos::pg::ReinforceSolver< EnvType, PolicyType >, bitrl::rl::algos::td::ExpectedSarsaSolver< EnvType, PolicyType >, bitrl::rl::algos::td::SarsaSolver< EnvType, PolicyType >, example_12::IterativePolicyEvalutationSolver< EnvType, PolicyType >, example_14::ValueIteration< EnvType >, example_26::ExpectedSarsaSolver< EnvType, PolicyType >, rl_example_11::A2CSolver< EnvType, PolicyType, CriticType >, rl_example_13::ReinforceSolver< EnvType, PolicyType >, rl_example_21::A2CSolver< EnvType, PolicyType, CriticType >, rl_example_7::PolicyIterationSolver< EnvType, PolicyType >, and rl_example_9::SarsaSolver< EnvType, PolicyType >.

◆ actions_before_episode_begins()

◆ actions_before_training_begins()

template<typename EnvType>
virtual void bitrl::rl::algos::RLSolverBase< EnvType >::actions_before_training_begins ( env_type & )
pure virtual

actions_before_training_begins. Execute any actions the algorithm needs before starting the iterations

Implemented in bitrl::rl::algos::dp::IterativePolicyEvalutationSolver< EnvType, PolicyType >, bitrl::rl::algos::dp::PolicyImprovement< EnvType, PolicyType >, bitrl::rl::algos::dp::PolicyIterationSolver< EnvType, PolicyType >, bitrl::rl::algos::dp::ValueIteration< EnvType >, bitrl::rl::algos::pg::A2CSolver< EnvType, PolicyType, CriticType >, bitrl::rl::algos::pg::ACSolverBase< EnvType, PolicyType, CriticType, MonitorType, ConfigType >, bitrl::rl::algos::pg::ACSolverBase< env_type, PolicyType, CriticType, A2CMonitor< action_type, state_type >, PPOConfig >, bitrl::rl::algos::pg::ACSolverBase< envs::ParallelEnvs< EnvType >, PolicyType, CriticType, A2CMonitor< EnvType::action_type, EnvType::state_type >, PPOConfig >, bitrl::rl::algos::pg::ACSolverBase< EnvType, PolicyType, CriticType, A2CMonitor< EnvType::action_type, EnvType::state_type >, PPOConfig >, bitrl::rl::algos::pg::ReinforceSolver< EnvType, PolicyType >, bitrl::rl::algos::td::ExpectedSarsaSolver< EnvType, PolicyType >, bitrl::rl::algos::td::SarsaSolver< EnvType, PolicyType >, example_12::IterativePolicyEvalutationSolver< EnvType, PolicyType >, example_14::ValueIteration< EnvType >, example_26::ExpectedSarsaSolver< EnvType, PolicyType >, rl_example_11::A2CSolver< EnvType, PolicyType, CriticType >, rl_example_13::ReinforceSolver< EnvType, PolicyType >, rl_example_21::A2CSolver< EnvType, PolicyType, CriticType >, rl_example_7::PolicyIterationSolver< EnvType, PolicyType >, and rl_example_9::SarsaSolver< EnvType, PolicyType >.

◆ on_training_episode()


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