Skip to main content

MoveInfo

Struct MoveInfo 

Source
pub struct MoveInfo {
Show 23 fields pub mv: Move, pub visits: u32, pub edge_visits: u32, pub winrate: f64, pub score_lead: f64, pub score_stdev: f64, pub score_selfplay: f64, pub prior: f64, pub no_result_value: Option<f64>, pub human_prior: Option<f64>, pub utility: f64, pub lcb: f64, pub utility_lcb: f64, pub weight: f64, pub edge_weight: f64, pub order: usize, pub play_selection_value: f64, pub is_symmetry_of: Option<Coord>, pub pv: Vec<Move>, pub pv_visits: Option<Vec<u32>>, pub pv_edge_visits: Option<Vec<u32>>, pub ownership: Option<Matrix<f64>>, pub ownership_stdev: Option<Matrix<f64>>,
}
Expand description

The result of analyzing a candidate move.

Fields§

§mv: Move

The move location in GTP format ("A1", "pass", etc.). This corresponds to the move field in KataGo’s response.

§visits: u32

The number of visits invested in this move.

§edge_visits: u32

The number of visits the root “wants” to invest in this move.

§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_stdev: f64

The predicted standard deviation of the score lead.

§score_selfplay: f64

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

§prior: f64

The policy prior of this move.

§no_result_value: Option<f64>

The predicted probability that the game will have a void result.

§human_prior: Option<f64>

The humanSL policy prior of this move.

§utility: f64

The utility of this move.

§lcb: f64

The LCB of this move’s winrate.

§utility_lcb: f64

The LCB of this move’s utility.

§weight: f64

The total weight of this move’s visits.

§edge_weight: f64

The total weight of the visits the root “wants” to invest in this move.

§order: usize

The relative ranking of this move, where 0 is best.

§play_selection_value: f64

The value used to determine the move ranking.

§is_symmetry_of: Option<Coord>

If present, indicates the move that was actually searched to get the evaluation of this move.

§pv: Vec<Move>

The principal variation for this move.

§pv_visits: Option<Vec<u32>>

The number of visits invested in each position in the principal variation.

§pv_edge_visits: Option<Vec<u32>>

The number of visits invested in each move in the principal variation.

§ownership: Option<Matrix<f64>>

The ownership prediction.

§ownership_stdev: Option<Matrix<f64>>

The standard deviation of the ownership prediction.

Implementations§

Source§

impl MoveInfo

Source

pub fn from_engine_move_info(info: MoveInfo, width: u8, height: u8) -> Self

Creates a move 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 MoveInfo

Source§

fn clone(&self) -> MoveInfo

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 MoveInfo

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.