|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
The IterativePolicyEval class. More...
#include <iterative_policy_evaluation.h>


Public Types | |
| typedef DPSolverBase< EnvType >::env_type | env_type |
| env_type | |
| typedef PolicyType | policy_type |
| policy_type | |
Public Types inherited from cuberl::rl::algos::dp::DPSolverBase< EnvType > | |
| typedef RLSolverBase< EnvType >::env_type | env_type |
| The environment type the solver is using. | |
Public Types inherited from cuberl::rl::algos::RLSolverBase< EnvType > | |
| typedef EnvType | env_type |
Public Member Functions | |
| IterativePolicyEvalutationSolver (IterativePolicyEvalConfig config, policy_type &policy) | |
| IterativePolicyEval. | |
| virtual void | actions_before_training_begins (env_type &env) override |
| actions_before_training_begins. Execute any actions the algorithm needs before starting the iterations | |
| virtual void | actions_after_training_ends (env_type &env) override |
| actions_after_training_ends. Actions to execute after the training iterations have finisehd | |
| virtual void | actions_before_episode_begins (env_type &, uint_t) override |
| actions_before_training_episode | |
| virtual void | actions_after_episode_ends (env_type &, uint_t, const EpisodeInfo &) override |
| actions_after_training_episode | |
| virtual EpisodeInfo | on_training_episode (env_type &env, uint_t episode_idx) override |
| on_episode Do one on_episode of the algorithm | |
| void | save (const std::string &filename) const |
| DynVec< real_t > | get_value_function () const |
| value_function | |
| policy_type | get_policy () const |
| get_policy | |
| void | update_policy (const policy_type &other) |
| update_policy | |
Public Member Functions inherited from cuberl::rl::algos::dp::DPSolverBase< EnvType > | |
| virtual | ~DPSolverBase ()=default |
| Destructor. | |
Public Member Functions inherited from cuberl::rl::algos::RLSolverBase< EnvType > | |
| virtual | ~RLSolverBase ()=default |
| Destructor. | |
Protected Attributes | |
| IterativePolicyEvalConfig | config_ |
| DynVec< real_t > | v_ |
| v_ | |
| policy_type & | policy_ |
| policy_ | |
Additional Inherited Members | |
Protected Member Functions inherited from cuberl::rl::algos::dp::DPSolverBase< EnvType > | |
| DPSolverBase ()=default | |
| DPAlgoBase. | |
Protected Member Functions inherited from cuberl::rl::algos::RLSolverBase< EnvType > | |
| RLSolverBase ()=default | |
| Constructor. | |
The IterativePolicyEval class.
| typedef DPSolverBase<EnvType>::env_type cuberl::rl::algos::dp::IterativePolicyEvalutationSolver< EnvType, PolicyType >::env_type |
env_type
| typedef PolicyType cuberl::rl::algos::dp::IterativePolicyEvalutationSolver< EnvType, PolicyType >::policy_type |
policy_type
|
explicit |
IterativePolicyEval.
|
inlineoverridevirtual |
actions_after_training_episode
Reimplemented from cuberl::rl::algos::RLSolverBase< EnvType >.
|
overridevirtual |
actions_after_training_ends. Actions to execute after the training iterations have finisehd
Implements cuberl::rl::algos::RLSolverBase< EnvType >.
|
inlineoverridevirtual |
actions_before_training_episode
Reimplemented from cuberl::rl::algos::RLSolverBase< EnvType >.
|
overridevirtual |
actions_before_training_begins. Execute any actions the algorithm needs before starting the iterations
Implements cuberl::rl::algos::RLSolverBase< EnvType >.
|
inline |
get_policy
|
inline |
value_function
|
overridevirtual |
on_episode Do one on_episode of the algorithm
Implements cuberl::rl::algos::RLSolverBase< EnvType >.
| void cuberl::rl::algos::dp::IterativePolicyEvalutationSolver< EnvType, PolicyType >::save | ( | const std::string & | filename | ) | const |
|
inline |
update_policy
| other |
|
protected |
|
protected |
policy_
|
protected |
v_