Struct minimax::strategies::mcts::MCTSOptions
source · pub struct MCTSOptions {
pub verbose: bool,
/* private fields */
}
Expand description
Options for MonteCarloTreeSearch.
Fields§
§verbose: bool
Implementations§
source§impl MCTSOptions
impl MCTSOptions
sourcepub fn with_max_rollout_depth(self, depth: u32) -> Self
pub fn with_max_rollout_depth(self, depth: u32) -> Self
Set a maximum depth for rollouts. Rollouts that reach this depth are stopped and assigned a Draw value.
sourcepub fn with_rollouts_before_expanding(self, rollouts: u32) -> Self
pub fn with_rollouts_before_expanding(self, rollouts: u32) -> Self
How many rollouts to run on a single leaf node before expanding its children. The default value is 0, where every rollout expands some leaf node.
sourcepub fn with_num_threads(self, threads: usize) -> Self
pub fn with_num_threads(self, threads: usize) -> Self
How many threads to run. Defaults to num_cpus.
Trait Implementations§
source§impl Clone for MCTSOptions
impl Clone for MCTSOptions
source§fn clone(&self) -> MCTSOptions
fn clone(&self) -> MCTSOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MCTSOptions
impl Send for MCTSOptions
impl Sync for MCTSOptions
impl Unpin for MCTSOptions
impl UnwindSafe for MCTSOptions
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