class RandomTabularPolicy
More...
#include <random_tabular_policy.h>
|
| | RandomTabularPolicy () |
| | Constructor.
|
| | RandomTabularPolicy (uint_t seed) |
| | Constructor Initialize with a seed.
|
| template<typename MatType> |
| output_type | operator() (const MatType &q_map, uint_t state_idx) const |
| | operator(). Given a
|
| output_type | operator() (const torch_tensor_t &vec) const |
| template<typename VecTp> |
| output_type | operator() (const VecTp &vec) const |
| | operator(). Given a vector always returns the position of the maximum occuring element. If the given vector is empty returns CubeAIConsts::invalid_size_type
|
| template<typename MatType> |
| output_type | get_action (const MatType &q_map, uint_t state_idx) |
| | get_action. Given a
|
| template<typename VecTp> |
| 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
|
| void | on_episode (uint_t) noexcept |
| | any actions the policy should perform on the given episode index
|
| void | reset () noexcept |
| | Reset the policy.
|
◆ output_type
The type returned when calling this->operator().
◆ RandomTabularPolicy() [1/2]
| bitrl::rl::policies::RandomTabularPolicy::RandomTabularPolicy |
( |
| ) |
|
◆ RandomTabularPolicy() [2/2]
| bitrl::rl::policies::RandomTabularPolicy::RandomTabularPolicy |
( |
uint_t | seed | ) |
|
|
explicit |
Constructor Initialize with a seed.
◆ get_action() [1/2]
template<typename MatType>
| output_type bitrl::rl::policies::RandomTabularPolicy::get_action |
( |
const MatType & | q_map, |
|
|
uint_t | state_idx ) |
◆ get_action() [2/2]
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
◆ on_episode()
| void bitrl::rl::policies::RandomTabularPolicy::on_episode |
( |
uint_t | | ) |
|
|
inlinenoexcept |
any actions the policy should perform on the given episode index
◆ operator()() [1/3]
template<typename MatType>
| output_type bitrl::rl::policies::RandomTabularPolicy::operator() |
( |
const MatType & | q_map, |
|
|
uint_t | state_idx ) const |
◆ operator()() [2/3]
◆ operator()() [3/3]
operator(). Given a vector always returns the position of the maximum occuring element. If the given vector is empty returns CubeAIConsts::invalid_size_type
◆ reset()
| void bitrl::rl::policies::RandomTabularPolicy::reset |
( |
| ) |
|
|
inlinenoexcept |
The documentation for this class was generated from the following file: