6 #include "max_function_selector.hpp" 17 template <
typename Context,
typename Config>
43 return node->
ev() + C * sqrt(log((
double)nb_parent_samples) / nb_samples);
UCTSelector(double _C)
constructs a new selector
selector that selects the childnode, that maximises the ratio between samples and ev of the parent no...
selector selects the child of a node that maximises a given metric.
basic interface for a node in the tree. Every node has to implement this functions.
virtual node_t * parent() const =0
gets the parent of the current node
virtual int nb_samples() const =0
number of times a selection strategy selected the current node.
double evaluate(node_t *node) const
this function has to be implemented in derived classes that specializes the metric to be used....
virtual double ev() const =0
gets the current expected value.