Packages

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()
Linear Supertypes
PythonInternals, Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Env
  2. PythonInternals
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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

  5. final def as[T](implicit arg0: Reader[T]): T
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def close(): Unit

    refer to https://github.com/openai/gym/blob/master/gym/core.py

  9. final def del(): Unit
    Definition Classes
    Any
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(obj: Any): Boolean
    Definition Classes
    Any → AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    Any → AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. lazy val me: Dynamic
    Attributes
    protected[this]
    Definition Classes
    PythonInternals
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. 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

  20. def render(mode: |[String, StandardRenderMode] = "human"): Any
    Annotations
    @SuppressWarnings()
  21. 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

  22. def rewardRange: (Double, Double)

    python name: reward_range

    python name: reward_range

    returns

    the admissible reward range

  23. def seed(seed: |[Int, Option[Int]] = None): Any
    Annotations
    @SuppressWarnings()
  24. 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)

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    Any → AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from PythonInternals

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped