Trait StateValueEstimator

Source
pub trait StateValueEstimator<D: Domain>: Send {
    // Required method
    fn estimate(
        &mut self,
        rnd: &mut ChaCha8Rng,
        config: &MCTSConfiguration,
        initial_state: &D::State,
        start_tick: u64,
        node: &Node<D>,
        edges: &Edges<D>,
        depth: u32,
    ) -> Option<BTreeMap<AgentId, f32>>;
}
Expand description

An estimator of state-value function.

Required Methods§

Source

fn estimate( &mut self, rnd: &mut ChaCha8Rng, config: &MCTSConfiguration, initial_state: &D::State, start_tick: u64, node: &Node<D>, edges: &Edges<D>, depth: u32, ) -> Option<BTreeMap<AgentId, f32>>

Takes the state of an explored node and returns the estimated expected (discounted) values.

Returns None if the passed node has no unexpanded edge.

Implementors§