pub struct SyncSampler<E, P> where
    E: Env,
    P: StepProcessorBase<E>, 
{ /* private fields */ }
Expand description

Gets an Agent interacts with an Env and takes samples.

TODO: Rename to Sampler.

Implementations

Creates a sampler.

Samples transitions and pushes them into the replay buffer.

The replay buffer R_, to which samples will be pushed, has to accept PushedItem that are the same with Agent::R.

Returns FPS, including taking action, applying it to the, environment, producing transition, and pushing it into the replay buffer.

Reset stats for computing FPS.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.