pub struct MctsConfig<F: SelectionFunction, S: ScoreTransformer> { /* private fields */ }Expand description
Configuration for the MCTS batch manager.
Contains the hyperparameters and functions required to run the selection and backpropagation phases.
Implementations§
Source§impl<F: SelectionFunction, S: ScoreTransformer> MctsConfig<F, S>
impl<F: SelectionFunction, S: ScoreTransformer> MctsConfig<F, S>
Sourcepub fn new(c: f32, selection_function: F, score_transformer: S) -> Self
pub fn new(c: f32, selection_function: F, score_transformer: S) -> Self
Creates a new configuration for the MCTS engine.
§Arguments
c- The exploration hyperparameter (often sqrt(2)).selection_function- The heuristic used to select nodes (e.g., UCB1 or PUCT).score_transformer- The function applied to scores during backpropagation.
§Returns
A new MctsConfig instance.
Trait Implementations§
Source§impl<F: Debug + SelectionFunction, S: Debug + ScoreTransformer> Debug for MctsConfig<F, S>
impl<F: Debug + SelectionFunction, S: Debug + ScoreTransformer> Debug for MctsConfig<F, S>
Auto Trait Implementations§
impl<F, S> Freeze for MctsConfig<F, S>
impl<F, S> RefUnwindSafe for MctsConfig<F, S>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<F, S> Send for MctsConfig<F, S>
impl<F, S> Sync for MctsConfig<F, S>
impl<F, S> Unpin for MctsConfig<F, S>
impl<F, S> UnsafeUnpin for MctsConfig<F, S>where
F: UnsafeUnpin,
S: UnsafeUnpin,
impl<F, S> UnwindSafe for MctsConfig<F, S>where
F: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more