pub struct CartPoleParams<B: Backend> {
pub gravity: F32<B>,
pub masscart: F32<B>,
pub masspole: F32<B>,
pub total_mass: F32<B>,
pub length: F32<B>,
pub polemass_length: F32<B>,
pub force_mag: F32<B>,
pub tau: F32<B>,
pub theta_threshold_radians: F32<B>,
pub x_threshold: F32<B>,
pub max_steps_in_episode: I32<B>,
}Expand description
The parameters of CartPole. Defaults follow CartPole-v1.
Fields§
§gravity: F32<B>Gravity.
masscart: F32<B>Mass of the cart.
masspole: F32<B>Mass of the pole.
total_mass: F32<B>masscart + masspole.
length: F32<B>Half the length of the pole.
polemass_length: F32<B>masspole * length.
force_mag: F32<B>The force of an action.
tau: F32<B>The time step.
theta_threshold_radians: F32<B>The angle at which the episode terminates.
x_threshold: F32<B>The position at which the episode terminates.
max_steps_in_episode: I32<B>The time limit.
Trait Implementations§
Source§impl<B: Backend> Tree<B> for CartPoleParams<B>
impl<B: Backend> Tree<B> for CartPoleParams<B>
Source§type On<__RuxlaC: Backend> = CartPoleParams<__RuxlaC>
type On<__RuxlaC: Backend> = CartPoleParams<__RuxlaC>
The same structure on backend
C.Source§fn unflatten_like(
&self,
leaves: &mut dyn Iterator<Item = <B as Backend>::Leaf>,
) -> Self
fn unflatten_like( &self, leaves: &mut dyn Iterator<Item = <B as Backend>::Leaf>, ) -> Self
Builds a value of the same structure from leaves.
Auto Trait Implementations§
impl<B> Freeze for CartPoleParams<B>
impl<B> RefUnwindSafe for CartPoleParams<B>
impl<B> Send for CartPoleParams<B>
impl<B> Sync for CartPoleParams<B>
impl<B> Unpin for CartPoleParams<B>
impl<B> UnsafeUnpin for CartPoleParams<B>
impl<B> UnwindSafe for CartPoleParams<B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more