Module common

Module common 

Source
Expand description

Common types and utilities for the AIXI implementation.

Structs§

RandomGenerator
A high-performance random number generator using the XorShift64* algorithm.

Enums§

ObservationKeyMode
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.
PerceptVal
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.
SymbolList
A list of symbols, used to represent encoded observations, rewards, or actions.