PoliciesMultiPlayers.BaseMPPolicy module

Base class for any multi-players policy.

  • If rewards are not in [0, 1], be sure to give the lower value and the amplitude. Eg, if rewards are in [-3, 3], lower = -3, amplitude = 6.

class PoliciesMultiPlayers.BaseMPPolicy.BaseMPPolicy[source]

Bases: object

Base class for any multi-players policy.

__init__()[source]

New policy

__str__()[source]

Return str(self).

_startGame_one(playerId)[source]

Forward the call to self._players[playerId].

_getReward_one(playerId, arm, reward)[source]

Forward the call to self._players[playerId].

_choice_one(playerId)[source]

Forward the call to self._players[playerId].

_choiceWithRank_one(playerId, rank=1)[source]

Forward the call to self._players[playerId].

_choiceFromSubSet_one(playerId, availableArms='all')[source]

Forward the call to self._players[playerId].

_choiceMultiple_one(playerId, nb=1)[source]

Forward the call to self._players[playerId].

_choiceIMP_one(playerId, nb=1)[source]

Forward the call to self._players[playerId].

_estimatedOrder_one(playerId)[source]

Forward the call to self._players[playerId].

_estimatedBestArms_one(playerId, M=1)[source]

Forward the call to self._players[playerId].

__dict__ = mappingproxy({'__module__': 'PoliciesMultiPlayers.BaseMPPolicy', '__doc__': ' Base class for any multi-players policy.', '__init__': <function BaseMPPolicy.__init__>, '__str__': <function BaseMPPolicy.__str__>, '_startGame_one': <function BaseMPPolicy._startGame_one>, '_getReward_one': <function BaseMPPolicy._getReward_one>, '_choice_one': <function BaseMPPolicy._choice_one>, '_choiceWithRank_one': <function BaseMPPolicy._choiceWithRank_one>, '_choiceFromSubSet_one': <function BaseMPPolicy._choiceFromSubSet_one>, '_choiceMultiple_one': <function BaseMPPolicy._choiceMultiple_one>, '_choiceIMP_one': <function BaseMPPolicy._choiceIMP_one>, '_estimatedOrder_one': <function BaseMPPolicy._estimatedOrder_one>, '_estimatedBestArms_one': <function BaseMPPolicy._estimatedBestArms_one>, '__dict__': <attribute '__dict__' of 'BaseMPPolicy' objects>, '__weakref__': <attribute '__weakref__' of 'BaseMPPolicy' objects>})
__module__ = 'PoliciesMultiPlayers.BaseMPPolicy'
__weakref__

list of weak references to the object (if defined)