forked from gambitproject/gambit
-
Notifications
You must be signed in to change notification settings - Fork 3
Behaviour of mixed strategy profiles #4
Copy link
Copy link
Open
Description
The current behaviour of mixed strategy profiles should be enhanced as follows:
__getitem__and__setitem__should also accept text labels as indices, indexing into strategies or players as appropriate.__getitem__returns a list of probabilities when indexing by a player. Instead, this should return a shim class that operates as a "window" onto the profile - so constructions likeprofile[player][strategy] = probwork as expected.payoffshould accept text labels as indicesstrategy_valueshould accept text labels as indices- Implement
strategy_values(player), which should return a list-like object representing the strategy value for each of a player's strategies
A parallel implementation for mixed strategy profiles with rational probabilities should also be implemented, where all numbers are converted to fractions.Fraction in the interface.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels