Struct relearn::envs::CartPoleConfig
source · [−]pub struct CartPoleConfig {
pub physics_config: PhysicalConstants,
pub env_config: EnvironmentParams,
}
Expand description
Configuration for the CartPole
environment.
Fields
physics_config: PhysicalConstants
Physics configuration
env_config: EnvironmentParams
Environment environment configuration
Trait Implementations
sourceimpl BuildEnv for CartPoleConfig
impl BuildEnv for CartPoleConfig
type Observation = CartPolePhysicalState
type Observation = CartPolePhysicalState
Environment observation type.
type Action = Push
type Action = Push
Environment action type.
type ObservationSpace = CartPolePhysicalStateSpace
type ObservationSpace = CartPolePhysicalStateSpace
Environment observation space type.
type ActionSpace = IndexedTypeSpace<Push>
type ActionSpace = IndexedTypeSpace<Push>
Environment action space type.
type FeedbackSpace = IntervalSpace<Reward>
type FeedbackSpace = IntervalSpace<Reward>
Environment feedback space type.
type Environment = CartPole
type Environment = CartPole
Type of environment to build
sourcefn build_env(&self, _: &mut Prng) -> Result<Self::Environment, BuildEnvError>
fn build_env(&self, _: &mut Prng) -> Result<Self::Environment, BuildEnvError>
Build an environment instance. Read more
sourceimpl Clone for CartPoleConfig
impl Clone for CartPoleConfig
sourcefn clone(&self) -> CartPoleConfig
fn clone(&self) -> CartPoleConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CartPoleConfig
impl Debug for CartPoleConfig
sourceimpl Default for CartPoleConfig
impl Default for CartPoleConfig
sourcefn default() -> CartPoleConfig
fn default() -> CartPoleConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CartPoleConfig
impl<'de> Deserialize<'de> for CartPoleConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<CartPoleConfig> for CartPoleConfig
impl PartialEq<CartPoleConfig> for CartPoleConfig
sourcefn eq(&self, other: &CartPoleConfig) -> bool
fn eq(&self, other: &CartPoleConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CartPoleConfig) -> bool
fn ne(&self, other: &CartPoleConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for CartPoleConfig
impl Serialize for CartPoleConfig
impl Copy for CartPoleConfig
impl StructuralPartialEq for CartPoleConfig
Auto Trait Implementations
impl RefUnwindSafe for CartPoleConfig
impl Send for CartPoleConfig
impl Sync for CartPoleConfig
impl Unpin for CartPoleConfig
impl UnwindSafe for CartPoleConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more