AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_FACTORED_MDP_Q_GREEDY_POLICY_HEADER_FILE
2 #define AI_TOOLBOX_FACTORED_MDP_Q_GREEDY_POLICY_HEADER_FILE
22 template <
typename Maximizer = Bandit::VariableElimination>
35 template <
typename... Args>
46 template <
typename... Args>
83 const typename Maximizer::Graph &
getGraph()
const;
89 mutable Maximizer max_;
90 mutable typename Maximizer::Graph graph_;
93 template <
typename Maximizer>
94 template <
typename... Args>
96 Base(std::move(s), std::move(a)), qc_(&q), qm_(nullptr),
97 max_(std::forward<Args>(args)...),
101 template <
typename Maximizer>
102 template <
typename... Args>
104 Base(std::move(s), std::move(a)), qc_(nullptr), qm_(&q),
105 max_(std::forward<Args>(args)...),
109 template <
typename Maximizer>
116 return std::get<0>(max_(A, graph_));
119 template <
typename Maximizer>
121 if (
veccmp(a, sampleAction(s)) == 0)
return 1.0;
125 template <
typename Maximizer>
130 template <
typename Maximizer>
135 template <
typename Maximizer>