trait Env[A, O, AS[A] <: Space[A], OS[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.
- A
the type of admissible action for this environment, e.g. Int, py.Any, ...
- O
the type of admissible observation for this environment, e.g. Int, py.Any, ...
- AS
the type of the space associate to actions, e.g. Space, Box, Dict, Tuple, ..
- OS
the type of the space associate to actions, e.g. Space, Box, Dict, Tuple, ..
- Annotations
- @native()
- Alphabetic
- By Inheritance
- Env
- PythonInternals
- Object
- Any
- AnyRawValue
- 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[AS[A]]): AS[A]
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
- 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[OS[O]]): OS[O]
python name: observation_space
python name: observation_space
- reader
type class needed to get the underlying python value
- returns
the open ai observation space
- lazy val pyThis: Dynamic
- Attributes
- protected[this]
- Definition Classes
- PythonInternals
- def render(mode: |[String, StandardRenderMode] = "human"): Any
- Annotations
- @SuppressWarnings()
- def reset()(implicit obs: Reader[O]): O
- 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: A)(implicit obs: Reader[O], wr: Writer[A]): StepResponse[O]
- 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