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/Text/index.html

Module Space.TextSource

Sourcetype element = string

String space for textual observations or actions.

Sourceval create : ?charset:string -> ?max_length:int -> unit -> element t

create ?charset ?max_length () is a text space. charset defaults to alphanumeric plus space. max_length defaults to 64. Valid strings contain only characters from charset and have length at most max_length.

Raises Invalid_argument if max_length <= 0 or charset is empty.