shapiq_benchmark.computers.MoebiusComputer¶
- class shapiq_benchmark.computers.MoebiusComputer(game)[source]¶
Bases:
Computer[SOUM|UnanimityGame|DummyGame]Synthetic games with a known Möbius representation, via
MoebiusConverter.Supports
SOUM,UnanimityGameandDummyGame, for any number of players. Besides the indices of the converter, it returns the Möbius transform itself ("Moebius"), which is sparse.Bind the computer to a game.
- Parameters:
game (
TypeVar(G, bound=Game)) – The game whose exact values the computer computes.- Raises:
UnsupportedComputationError – If the computer cannot handle the game.
- exact_values(index, order)¶
Compute the exact interaction values of order 1 to
order.- Parameters:
- Return type:
- Returns:
The interactions of order
1toorder, with the game’s empty value as baseline.- Raises:
UnsupportedComputationError – If
(index, order)is not supported.
- max_order()¶
Return the highest supported interaction order (the number of players by default).
- Return type:
- supports(index, order)¶
Return whether the computer can compute
indexup toorderfor its game.- Return type:
- game¶
- name = 'moebius'¶
A short, stable name of the computer (part of ground-truth cache keys).