1#ifndef SOFTMAX_POLICY_H
2#define SOFTMAX_POLICY_H
34 template <
typename MatType>
66template <
typename VecTp>
71 return max_policy_.get_action(softmax_vec);
class MaxTabularPolicy
Definition max_tabular_policy.h:33
output_type operator()(const MatType &q_map, uint_t state_idx) const
operator(). Given a
uint_t output_type
The output type of operator().
Definition softmax_policy.h:24
MaxTabularSoftmaxPolicy(real_t tau=1.0)
Constructor.
Definition softmax_policy.h:64
void reset() noexcept
Reset the policy.
Definition softmax_policy.h:53
void on_episode(uint_t) noexcept
any actions the policy should perform on the given episode index
Definition softmax_policy.h:48
std::vector< T > softmax_vec(const std::vector< T > &vec, real_t tau=1.0)
applies softmax operation to the elements of the vector and returns a vector with the result
Definition vector_math.h:313
Definition policy_stochastic_adaptor.h:21
Definition dummy_agent.h:9
Various utilities used when working with RL problems.
Definition bitrl_log.h:25
std::size_t uint_t
uint_t
Definition bitsim_types.h:40
double real_t
real_t
Definition bitsim_types.h:20