PoliciesMultiPlayers.BaseCentralizedPolicy module

Base class for any centralized policy, for the multi-players setting.

class PoliciesMultiPlayers.BaseCentralizedPolicy.BaseCentralizedPolicy(nbArms)[source]

Bases: object

Base class for any centralized policy, for the multi-players setting.

__init__(nbArms)[source]

New policy

__str__()[source]

Return str(self).

startGame()[source]

Start the simulation.

getReward(arm, reward)[source]

Get a reward from that arm.

choice()[source]

Choose an arm.

__dict__ = mappingproxy({'__module__': 'PoliciesMultiPlayers.BaseCentralizedPolicy', '__doc__': ' Base class for any centralized policy, for the multi-players setting.', '__init__': <function BaseCentralizedPolicy.__init__>, '__str__': <function BaseCentralizedPolicy.__str__>, 'startGame': <function BaseCentralizedPolicy.startGame>, 'getReward': <function BaseCentralizedPolicy.getReward>, 'choice': <function BaseCentralizedPolicy.choice>, '__dict__': <attribute '__dict__' of 'BaseCentralizedPolicy' objects>, '__weakref__': <attribute '__weakref__' of 'BaseCentralizedPolicy' objects>})
__module__ = 'PoliciesMultiPlayers.BaseCentralizedPolicy'
__weakref__

list of weak references to the object (if defined)