pub struct MctsBatchConfig<const N: usize> {
pub exploration_coef: f64,
pub selection_function: SelectionFunction<N>,
pub seed: Option<u64>,
}Expand description
Configuration parameters for an MctsBatch manager.
This struct extends MctsConfig with batch-specific settings like the random
number generator seed for reproducible batch simulations.
§Type Parameters
N: The number of possible actions in the game.
Fields§
§exploration_coef: f64The exploration coefficient for MCTS instances within the batch.
selection_function: SelectionFunction<N>The selection function for MCTS instances within the batch.
seed: Option<u64>Providing a Some(value) will initialize the RNG with a fixed seed,
ensuring reproducible simulation results across runs. If None,
a new seed based on the current time will be used, leading to
non-reproducible runs (but more “random” behavior).
Implementations§
Source§impl<const N: usize> MctsBatchConfig<N>
impl<const N: usize> MctsBatchConfig<N>
Sourcepub const DEFAULT: MctsBatchConfig<N>
pub const DEFAULT: MctsBatchConfig<N>
The default configuration for an MctsBatch.
It inherits the default exploration coefficient and selection function from MctsConfig::DEFAULT,
and uses None for the seed, meaning simulations will not be reproducible by default unless a seed is provided.