AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_FACTORED_BANDIT_UCVE_HEADER_FILE
2 #define AI_TOOLBOX_FACTORED_BANDIT_UCVE_HEADER_FILE
31 using V = Eigen::Vector2d;
36 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
40 using Result = std::tuple<Action, V>;
53 template <
typename Iterable>
57 for (
const Entry & rule : inputRules) {
58 const auto & [v, a] = rule;
59 auto & factorNode = graph.
getFactor(a.first)->getData();
62 const auto it = std::lower_bound(
63 std::begin(factorNode),
66 [](
const auto & rule,
size_t rhs) {
return rule.first < rhs;}
69 if (it != std::end(factorNode) && it->first ==
id)
75 return (*
this)(A, logtA, graph);
V v
Definition: UCVE.hpp:34
PartialAction tag
Definition: UCVE.hpp:35