Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Wrapper

Wrap an Env

This class is constructed with any gym.js Env. The methods of the wrapper will be the same as that of the env. This class can be used to preprocess the outputs of any of the env methods by changing the call to the method.

example
import {Wrapper, FrozenLake} from "gym-js";
env = new Wrapper(new FrozenLake());

Hierarchy

  • Wrapper

Index

Constructors

constructor

  • Parameters

    • env: Env

      The environment to wrap.

    Returns Wrapper

Properties

action_space

action_space: Space

env

env: Env

observation_space

observation_space: Space

reset

reset: function

Type declaration

    • (): tf.Tensor
    • Returns tf.Tensor

step

step: function

Type declaration

    • (action: number): [tf.Tensor, number, boolean, __type]
    • Parameters

      • action: number

      Returns [tf.Tensor, number, boolean, __type]

Generated using TypeDoc