|
libmcts
A Monte Carlo Tree Search Library
|
Uses sampling selector until threshold is reached. After that a supplied selection strategy is applied. More...
#include <sampling_to_function_selector.hpp>
Public Member Functions | |
| SamplingToFunctionSelector (int threshold_, sstrategy_t *function_strat_) | |
| create new selector More... | |
| node_t * | select (node_t *node) |
| select a child of node More... | |
Protected Attributes | |
| int | threshold |
| number of samples before the strategy is switched. | |
| sstrategy_t * | function_strat |
| sampling_selector_t | sselector |
Additional Inherited Members | |
Public Types inherited from mcts::ISelectionStrategy< Context, Config > | |
| typedef ISelectionStrategy< Context, Config > | sstrategy_t |
Uses sampling selector until threshold is reached. After that a supplied selection strategy is applied.
| Context | @README |
| Config | @README |
Definition at line 16 of file sampling_to_function_selector.hpp.
|
inline |
create new selector
| threshold_ | number of samples that must have run through the node before strategies are switched. |
| function_strat_ | pointer to selection strategy to switch to. |
Definition at line 29 of file sampling_to_function_selector.hpp.
|
inlinevirtual |
select a child of node
| node | to select child from |
Implements mcts::ISelectionStrategy< Context, Config >.
Definition at line 33 of file sampling_to_function_selector.hpp.
1.8.15