Packages

Gyx allows designing and training Reinforcement Learning tasks. It includes environment abstractions that allows interaction with Python based environments like OpenAI Gym.

Current section

Files

Jump to
gyx lib core spaces tuple.ex
Raw

lib/core/spaces/tuple.ex

defmodule Gyx.Core.Spaces.Tuple do
@moduledoc """
This space allows to glue together `Discrete` and `Box` spaces.
"""
alias Gyx.Core.Spaces.{Discrete, Box}
defstruct spaces: nil, seed: {1, 2, 3}, random_algorithm: :exsplus
@type space :: Discrete.t() | Box.t()
@type t :: %__MODULE__{
spaces: list(space()),
random_algorithm: :exrop | :exs1024 | :exs1024s | :exs64 | :exsp | :exsplus,
seed: {integer(), integer(), integer()}
}
end