pub struct RandomAgent { /* private fields */ }
Expand description

A random policy.

Implementations

Returns the number of optimization steps;

Trait Implementations

Set the policy to training mode.

Set the policy to evaluation mode.

Return if it is in training mode.

Do an optimization step.

Save the agent in the given directory. This method commonly creates a number of files consisting the agent in the directory. For example, the DQN agent in border_tch_agent crate saves two Q-networks corresponding to the original and target networks. Read more

Load the agent from the given directory.

Configuration of the policy.

Builds the policy.

Sample an action given an observation.

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.