class MaxTabularPolicy
More...
#include <max_tabular_policy.h>
|
| template<typename MatType > |
| static output_type | get_action (const MatType &q_map, uint_t state_idx) |
| | get_action. Given a
|
| |
| template<typename VecTp > |
| static output_type | get_action (const VecTp &q_map) |
| | get_action. Given a vector always returns the position of the maximum occuring element. If the given vector is empty returns CubeAIConsts::invalid_size_type
|
| |
◆ action_type
◆ output_type
The output type of operator()
◆ state_type
◆ MaxTabularPolicy()
| cuberl::rl::policies::MaxTabularPolicy::MaxTabularPolicy |
( |
| ) |
|
|
default |
◆ get_action() [1/3]
template<typename MatType >
| static output_type cuberl::rl::policies::MaxTabularPolicy::get_action |
( |
const MatType & |
q_map, |
|
|
uint_t |
state_idx |
|
) |
| |
|
static |
◆ get_action() [2/3]
template<typename VecTp >
| static output_type cuberl::rl::policies::MaxTabularPolicy::get_action |
( |
const VecTp & |
q_map | ) |
|
|
static |
get_action. Given a vector always returns the position of the maximum occuring element. If the given vector is empty returns CubeAIConsts::invalid_size_type
◆ get_action() [3/3]
template<typename VecTp >
◆ on_episode()
| void cuberl::rl::policies::MaxTabularPolicy::on_episode |
( |
uint_t |
| ) |
|
|
inlinenoexcept |
any actions the policy should perform on the given episode index
◆ on_state()
Get the action from the given state.
◆ reset()
| void cuberl::rl::policies::MaxTabularPolicy::reset |
( |
| ) |
|
|
inlinenoexcept |
◆ save()
| void cuberl::rl::policies::MaxTabularPolicy::save |
( |
const std::string & |
filename | ) |
const |
Save the state -> action map in a CSV file;.
◆ MaxTabularPolicyBuilder
Make friends so the builder access private members.
The documentation for this class was generated from the following file: