AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_FACTORED_BANDIT_Q_GREEDY_POLICY_HEADER_FILE
2 #define AI_TOOLBOX_FACTORED_BANDIT_Q_GREEDY_POLICY_HEADER_FILE
21 template <
typename Maximizer = VariableElimination>
31 template <
typename... Args>
41 template <
typename... Args>
75 const typename Maximizer::Graph &
getGraph()
const;
81 mutable Maximizer max_;
82 mutable typename Maximizer::Graph graph_;
85 template <
typename Maximizer>
86 template <
typename... Args>
88 Base(std::move(a)), qc_(&q), qm_(nullptr),
89 max_(std::forward<Args>(args)...),
93 template <
typename Maximizer>
94 template <
typename... Args>
96 Base(std::move(a)), qc_(nullptr), qm_(&q),
97 max_(std::forward<Args>(args)...),
101 template <
typename Maximizer>
108 return std::get<0>(max_(A, graph_));
111 template <
typename Maximizer>
113 if (
veccmp(a, sampleAction()) == 0)
return 1.0;
117 template <
typename Maximizer>
122 template <
typename Maximizer>
127 template <
typename Maximizer>