pub struct RandomAgent { /* private fields */ }
Expand description
Returns the number of optimization steps;
Set the policy to training mode.
Set the policy to evaluation mode.
Return if it is in training mode.
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.
Sample an action given an observation.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. 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.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,