AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_MDP_SARSA_HEADER_FILE
2 #define AI_TOOLBOX_MDP_SARSA_HEADER_FILE
61 SARSA(
size_t S,
size_t A,
double discount = 1.0,
double alpha = 0.1);
77 template <IsGenerativeModel M>
78 SARSA(
const M& model,
double alpha = 0.1);
149 void stepUpdateQ(
size_t s,
size_t a,
size_t s1,
size_t a1,
double rew);
183 template <IsGenerativeModel M>
185 SARSA(model.getS(), model.getA(), model.getDiscount(), alpha) {}