trait Env[Action, Observation, ActionSpace[A] <: Space[A], ObservationSpace[O] <: Space[O]] extends Object with PythonInternals
From https://github.com/openai/gym/blob/master/gym/core.py Env is a facade that adds types to standard open-ai environments.
- Action
the type of admissible action for this environment, e.g. Int, py.Any, ...
- Observation
the type of admissible observation for this environment, e.g. Int, py.Any, ...
- ActionSpace
the type of the space associate to actions, e.g. Space, Box, Dict, Tuple, ..
- ObservationSpace
the type of the space associate to actions, e.g. Space, Box, Dict, Tuple, ..
- Annotations
- @native()
- Alphabetic
- By Inheritance
- Env
- PythonInternals
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def actionSpace(implicit reader: Reader[ActionSpace[Action]]): ActionSpace[Action]
python name: action_space
python name: action_space
- reader
type class needed to get the underlying python value
- returns
the open ai action space
- final def as[T](implicit arg0: Reader[T]): T
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
refer to https://github.com/openai/gym/blob/master/gym/core.py
- final def del(): Unit
- Definition Classes
- Any
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
- Definition Classes
- Any → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- Any → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val me: Dynamic
- Attributes
- protected[this]
- Definition Classes
- PythonInternals
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def observationSpace(implicit reader: Reader[ObservationSpace[Observation]]): ObservationSpace[Observation]
python name: observation_space
python name: observation_space
- reader
type class needed to get the underlying python value
- returns
the open ai observation space
- def render(mode: |[String, StandardRenderMode] = "human"): Any
- Annotations
- @SuppressWarnings()
- def reset()(implicit obs: Reader[Observation]): Observation
- obs
type class needed to convert the scala value to the python value
- returns
refer to https://github.com/openai/gym/blob/master/gym/core.py
- def rewardRange: (Double, Double)
python name: reward_range
python name: reward_range
- returns
the admissible reward range
- def seed(seed: |[Int, Option[Int]] = None): Any
- Annotations
- @SuppressWarnings()
- def step(action: Action)(implicit obs: Reader[Observation], wr: Writer[Action]): StepResponse[Observation]
- action
refer to https://github.com/openai/gym/blob/master/gym/core.py
- obs
type class needed to get the underlying python value
- wr
type class needed to convert the scala value to the python value
- returns
a tuple with (observation, reward, done, info)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Any → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated