bnelearn.mechanism.mechanism module

This module implements games such as matrix games and auctions.

class bnelearn.mechanism.mechanism.Game(cuda: bool = True)[source]

Bases: ABC

Base class for any kind of games

abstract play(action_profile)[source]

Play the game!

class bnelearn.mechanism.mechanism.Mechanism(cuda: bool = True, smoothing_temperature: Optional[float] = None)[source]

Bases: Game, ABC

Auction Mechanism - Interpreted as a Bayesian game. A Mechanism collects bids from all players, then allocates available items as well as payments for each of the players.

play(action_profile, smooth_market: bool = False) Tuple[Tensor, Tensor][source]

Play the game!

abstract run(bids) Tuple[Tensor, Tensor][source]

Alias for play for auction mechanisms