Expand description
Common types and utilities for the AIXI implementation.
Structs§
- Random
Generator - A high-performance random number generator using the XorShift64* algorithm.
Enums§
- Observation
KeyMode - Strategy for mapping an observation stream into a single percept key for tree search.
Functions§
- decode
- Decodes a numeric value from its bit representation.
- decode_
reward - Decodes a signed reward value from its bit representation.
- decode_
reward_ offset - encode
- Encodes a numeric value into its bit representation and appends it to a
SymbolList. - encode_
reward - Encodes a signed reward value into its bit representation.
- encode_
reward_ offset - observation_
key_ from_ stream - Compute a percept key from an observation stream.
- observation_
repr_ from_ stream - Compute the observation representation used for tree branching.
Type Aliases§
- Action
- Represents an action that the agent can perform.
- Percept
Val - A generic value for a percept component (either an observation or a reward).
- Reward
- Represents a reward received by the agent from the environment.
- Symbol
- Represents a single bit (0 or 1) in the agent’s interaction history.
- Symbol
List - A list of symbols, used to represent encoded observations, rewards, or actions.