View Source Ola.Dictionary (ola v0.1.0)

Service for storage + retrieval of probability data.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Flush the existing training/probability map

Increment a probability value for a given key

Show all available dictionary keys

Lookup the current set of value probabilities for a given key

Show the whole probability table (mostly for testing)

Given a key, returns a statistically-probable next key

Returns a random key from the map

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Flush the existing training/probability map

Link to this function

increment(key, value, amount \\ 1)

View Source

Increment a probability value for a given key

Show all available dictionary keys

Lookup the current set of value probabilities for a given key

Show the whole probability table (mostly for testing)

Given a key, returns a statistically-probable next key

Returns a random key from the map