AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_MDP_TREE_BACKUP_L_HEADER_FILE
2 #define AI_TOOLBOX_MDP_TREE_BACKUP_L_HEADER_FILE
27 TreeBackupL(
const size_t s,
const size_t a,
const double discount = 1.0,
const double alpha = 0.1,
28 const double lambda = 0.9,
const double tolerance = 0.001,
const double epsilon = 0.1) :
29 Parent(s, a, discount, alpha, tolerance, epsilon)
43 if ( l < 0.0 || l > 1.0 )
throw std::invalid_argument(
"Lambda parameter must be in [0,1]");
57 double getTraceDiscount(
const size_t,
const size_t a,
const size_t,
const double,
const size_t maxA)
const {
59 return lambda_ * prob;
93 const double alpha,
const double lambda,
const double tolerance) :
94 Parent(target, discount, alpha, tolerance)
108 if ( l < 0.0 || l > 1.0 )
throw std::invalid_argument(
"Lambda parameter must be in [0,1]");
122 double getTraceDiscount(
const size_t s,
const size_t a,
const size_t,
const double)
const {