coba.primitives
Basic building blocks shared across modules.
Type Aliases
These exist to show how data and variables flow through coba objects.
Contextalias of
Union[None,str,Number,Sequence,Mapping]
Actionalias of
Union[str,Number,Sequence,Mapping]
Actionsalias of
Union[None,Sequence[Action]]
Rewardalias of
float
Probalias of
float
Kwargsalias of
Mapping[str,Any]
Predalias of
Union[Action,Tuple[Action,Prob],Tuple[Action,Kwargs],Tuple[Action,Prob,Kwargs]]
Interfaces
A source of Interactions.
An agent that acts and learns.
An evaluator for learners in environments.
A function rewarding actions.
Modify an Environment.
Rewards
A reward function using L1 distance.
A reward function with two values.
A reward function using Hamming distance.
A reward function mapping actions to rewards.
Interactions
An interaction in an Environment.
An interaction with reward information for all actions.
An interaction with a reward and propensity score for an action.
An interaction with feedbacks for Interaction Grounded Learning.