Empty environment

Hierarchy (View Summary)

Constructors

Properties

_epoch: number
actions: any[]
states: any[]

Accessors

  • get epoch(): number
  • Epoch

    Returns number

  • set reward(value: any): void
  • Reward

    Parameters

    • value: any

      Reward object

    Returns void

Methods

  • Reset environment.

    Returns any[]

  • Sample an action.

    Parameters

    • agent: any

      Agent

    Returns any[]

    Sampled action

  • Returns current state.

    Returns any[]

    Current state

  • Do action and returns new state.

    Parameters

    • action: any[]

      Actions to be performed by the agent

    • agent: any

      Agent

    Returns { done: boolean; invalid?: boolean; reward: number; state: any[] }

    state, reward, done

  • Do actioin without changing environment and returns new state.

    Returns { done: boolean; reward: number; state: any[] }

    state, reward, done