AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_MDP_BANDIT_POLICY_ADAPTOR_HEADER_FILE
2 #define AI_TOOLBOX_MDP_BANDIT_POLICY_ADAPTOR_HEADER_FILE
16 template <
typename BanditPolicy>
25 template <
typename... Args>
35 virtual size_t sampleAction(
const size_t & s)
const override;
69 template <
typename BP>
70 template <
typename... Args>
72 Base(s, 1), policy_(std::forward<Args>(args)...)
79 template <
typename BP>
81 return policy_.sampleAction();
84 template <
typename BP>
86 return policy_.getActionProbability(a);
89 template <
typename BP>
91 return policy_.getPolicy().transpose().replicate(getS(), 1);
94 template <
typename BP>
97 template <
typename BP>