package fehu

  1. Overview
  2. Docs
Reinforcement learning for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha3.tbz
sha256=96d35ce03dfbebd2313657273e24c2e2d20f9e6c7825b8518b69bd1d6ed5870f
sha512=90c5053731d4108f37c19430e45456063e872b04b8a1bbad064c356e1b18e69222de8bfcf4ec14757e71f18164ec6e4630ba770dbcb1291665de5418827d1465

doc/fehu/Fehu/Space/Discrete/index.html

Module Space.DiscreteSource

Sourcetype element = (int32, Nx.int32_elt) Nx.t

Discrete action represented as a scalar int32 tensor.

Sourceval create : ?start:int -> int -> element t

create ?start n is a discrete space with n choices in the range [start; start + n - 1]. start defaults to 0.

Raises Invalid_argument if n <= 0.

Sourceval n : element t -> int

n s is the number of choices in s.

Raises Invalid_argument if s is not a discrete space.

Sourceval start : element t -> int

start s is the starting value of s.

Raises Invalid_argument if s is not a discrete space.

Sourceval to_int : element -> int

to_int e is the integer value of the discrete element e.

Sourceval of_int : int -> element

of_int v is a discrete element with value v.