fn ucb_score(&self, prior_weight: f64, parent_visits: i32) -> f64 {
        let prior_weight =
            prior_weight * (parent_visits as f64).sqrt() / ((1 + self.visits) as f64);
        self.average_value() + prior_weight * self.prior_prob
    }
/// Compute the UCB score from the perspective of the active player.
Compute the UCB score from the perspective of the active player.
Compute the UCB score from the perspective of the active player .
fn ucb_score(&self, prior_weight: f64, parent_visits: i32) -> f64 {
        let prior_weight =
            prior_weight * (parent_visits as f64).sqrt() / ((1 + self.visits) as f64);
        self.average_value() + prior_weight * self.prior_prob
    }
fn ucb_score ( & self , prior_weight : f64 , parent_visits : i32 ) -> f64 { let prior_weight = prior_weight * ( parent_visits as f64 ) . sqrt ( ) / ( ( 1 + self . visits ) as f64 ) ; self . average_value ( ) + prior_weight * self . prior_prob }
Compute the UCB score from the perspective of the active player.
Compute the UCB score from the perspective of the active player .
&self
prior_weight
f64
parent_visits
i32
&self
prior_weight
f64
parent_visits
i32