Skip to main content

RootInfo

Struct RootInfo 

Source
pub struct RootInfo {
Show 21 fields pub winrate: f64, pub score_lead: f64, pub score_selfplay: f64, pub utility: f64, pub visits: u32, pub this_hash: String, pub sym_hash: String, pub current_player: Player, pub raw_winrate: f64, pub raw_lead: f64, pub raw_score_selfplay: f64, pub raw_score_selfplay_stdev: f64, pub raw_no_result_prob: f64, pub raw_st_wr_error: f64, pub raw_st_score_error: f64, pub raw_var_time_left: f64, pub human_winrate: Option<f64>, pub human_score_mean: Option<f64>, pub human_score_stdev: Option<f64>, pub human_st_wr_error: Option<f64>, pub human_st_score_error: Option<f64>,
}
Expand description

The result of analyzing the root position.

Fields§

§winrate: f64

The winrate, in the range [0, 1].

§score_lead: f64

The predicted number of points that the current side is leading by.

§score_selfplay: f64

The predicted score at the end of the game after selfplay.

§utility: f64

The utility.

§visits: u32

The number of visits received.

§this_hash: String

The hash of this position.

§sym_hash: String

The hash of this position that is invariant under board symmetries.

§current_player: Player

The player to move.

§raw_winrate: f64

The winrate prediction from the neural network.

§raw_lead: f64

The score lead prediction from the neural network.

§raw_score_selfplay: f64

The selfplay score prediction from the neural network.

§raw_score_selfplay_stdev: f64

The selfplay score standard deviation prediction from the neural network.

§raw_no_result_prob: f64

The void result probability prediction from the neural network.

§raw_st_wr_error: f64

The short-term winrate uncertainty prediction from the neural network.

§raw_st_score_error: f64

The short-term score uncertainty prediction from the neural network.

§raw_var_time_left: f64

A measure of how much meaningful game is left until the winner is known, predicted by the neural network.

§human_winrate: Option<f64>

The winrate prediction from the humanSL neural network.

§human_score_mean: Option<f64>

The score prediction from the humanSL neural network.

§human_score_stdev: Option<f64>

The score standard deviation prediction from the humanSL neural network.

§human_st_wr_error: Option<f64>

The short-term winrate uncertainty prediction from the humanSL neural network.

§human_st_score_error: Option<f64>

The short-term score uncertainty prediction from the humanSL neural network.

Implementations§

Source§

impl RootInfo

Source

pub fn from_engine_root_info(info: RootInfo) -> Self

Creates a root analysis from the lower-level equivalent used by the engine module.

You probably don’t need to use this unless you’re directly using the lower-level API in the engine module.

Trait Implementations§

Source§

impl Clone for RootInfo

Source§

fn clone(&self) -> RootInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RootInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.