@ai-on-browser/data-analysis-models
    Preparing search index...

    Class EmptyRLEnvironment

    Empty environment

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    Accessors

    • get epoch(): number

      Epoch

      Returns number

    • set reward(value: object): void

      Reward

      Parameters

      • value: object

        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