[][src]Struct ggpf::policies::mcts::puct::PUCTPolicy_

pub struct PUCTPolicy_<G> where
    G: Features
{ pub min_tree: f32, pub max_tree: f32, // some fields omitted }

PUCT policy.

Fields

min_tree: f32

Minimum Q value encountered in the tree.

max_tree: f32

Maximum Q value encountered in the tree.

Methods

impl<G> PUCTPolicy_<G> where
    G: Features + MCTSGame, 
[src]

pub fn normalize(&self, x: f32) -> f32[src]

Normalize Q value according to minimum and maximum values.

Trait Implementations

impl<G> BaseMCTSPolicy<G> for PUCTPolicy_<G> where
    G: Features + MCTSGame, 
[src]

type NodeInfo = PUCTNodeInfo

Additional node statistics.

type MoveInfo = PUCTMoveInfo

Additional move statistics.

type PlayoutInfo = (Option<HashMap<<G as Base>::Move, f32>>, f32, <G as Game>::Player)

Informations generated by a playout.

impl<G: Clone> Clone for PUCTPolicy_<G> where
    G: Features,
    G::Player: Clone
[src]

Auto Trait Implementations

impl<G> !RefUnwindSafe for PUCTPolicy_<G>

impl<G> Send for PUCTPolicy_<G> where
    <G as Game>::Player: Send

impl<G> Sync for PUCTPolicy_<G> where
    <G as Game>::Player: Sync

impl<G> Unpin for PUCTPolicy_<G> where
    <G as Game>::Player: Unpin

impl<G> !UnwindSafe for PUCTPolicy_<G>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> With for T