[][src]Struct ggpf::deep::self_play::GameHistoryEntry

pub struct GameHistoryEntry<G> where
    G: Features
{ pub state: Array<f32, <G::StateDim as Dimension>::Larger>, pub policy: Array<f32, <G::ActionDim as Dimension>::Larger>, pub action: Array<f32, <G::ActionDim as Dimension>::Larger>, pub value: Array<f32, Ix1>, pub reward: Array<f32, Ix1>, pub turn: Vec<f32>, }

Game history data generated from self-play

Fields

state: Array<f32, <G::StateDim as Dimension>::Larger>

List of board states, except for the final state.

policy: Array<f32, <G::ActionDim as Dimension>::Larger>

MCTS exploration statistics for the root node of the curent policy.

action: Array<f32, <G::ActionDim as Dimension>::Larger>

One-hot encoding of the action taken by the policy.

value: Array<f32, Ix1>

Value estimation of the root node.

reward: Array<f32, Ix1>

Reward obtained after performing the action.

turn: Vec<f32>

Whose turn.

Auto Trait Implementations

impl<G> RefUnwindSafe for GameHistoryEntry<G> where
    <G as Features>::ActionDim: Dimension,
    <<G as Features>::ActionDim as Dimension>::Larger: RefUnwindSafe,
    <<G as Features>::StateDim as Dimension>::Larger: RefUnwindSafe,
    <G as Features>::StateDim: Dimension

impl<G> Send for GameHistoryEntry<G> where
    <G as Features>::ActionDim: Dimension,
    <<G as Features>::ActionDim as Dimension>::Larger: Send,
    <<G as Features>::StateDim as Dimension>::Larger: Send,
    <G as Features>::StateDim: Dimension

impl<G> Sync for GameHistoryEntry<G> where
    <G as Features>::ActionDim: Dimension,
    <<G as Features>::ActionDim as Dimension>::Larger: Sync,
    <<G as Features>::StateDim as Dimension>::Larger: Sync,
    <G as Features>::StateDim: Dimension

impl<G> Unpin for GameHistoryEntry<G> where
    <G as Features>::ActionDim: Dimension,
    <<G as Features>::ActionDim as Dimension>::Larger: Unpin,
    <<G as Features>::StateDim as Dimension>::Larger: Unpin,
    <G as Features>::StateDim: Dimension

impl<G> UnwindSafe for GameHistoryEntry<G> where
    <G as Features>::ActionDim: Dimension,
    <<G as Features>::ActionDim as Dimension>::Larger: UnwindSafe,
    <<G as Features>::StateDim as Dimension>::Larger: UnwindSafe,
    <G as Features>::StateDim: Dimension

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, 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