github ↗
docs menu

Module Fehu

Reinforcement learning environments and utilities.

Environments are host data: observations, actions, rewards and stored transitions are host values (Nx.host), and samples draw from Nx.Rng's scope (Nx.Rng.with_key). A policy on another device set places what it reads (Nx.place).

Core

  • Value Universal value type.
  • Info Step metadata dictionaries.
  • Space Observation and action spaces.
  • Env Reinforcement learning environments.

Collection and training

  • Collect Trajectory collection from environments.
  • Buffer Replay buffer for off-policy experience storage.
  • Gae Generalized Advantage Estimation.
  • Eval Policy evaluation.

Composition

#module Value : sig ... end

Universal value type.

#module Info : sig ... end

Step metadata dictionaries.

#module Space : sig ... end

Observation and action spaces.

#module Env : sig ... end

Reinforcement learning environments.

#module Vec_env : sig ... end

Vectorized environments.

#module Collect : sig ... end

Trajectory collection from environments.

#module Buffer : sig ... end

Replay buffer for off-policy experience storage.

#module Gae : sig ... end

Generalized Advantage Estimation.

#module Eval : sig ... end

Policy evaluation.

#module Render : sig ... end

Visualization primitives.