Environment.ResultMultiPlayers module

ResultMultiPlayers.ResultMultiPlayers class to wrap the simulation results, for the multi-players case.

class Environment.ResultMultiPlayers.ResultMultiPlayers(nbArms, horizon, nbPlayers, means=None)[source]

Bases: object

ResultMultiPlayers accumulators, for the multi-players case.

__init__(nbArms, horizon, nbPlayers, means=None)[source]

Create ResultMultiPlayers.

choices = None

Store all the choices of all the players

rewards = None

Store all the rewards of all the players, to compute the mean

pulls = None

Store the pulls of all the players

allPulls = None

Store all the pulls of all the players

collisions = None

Store the collisions on all the arms

running_time = None

Store the running time of the experiment

memory_consumption = None

Store the memory consumption of the experiment

store(time, choices, rewards, pulls, collisions)[source]

Store results.

__dict__ = mappingproxy({'__module__': 'Environment.ResultMultiPlayers', '__doc__': ' ResultMultiPlayers accumulators, for the multi-players case. ', '__init__': <function ResultMultiPlayers.__init__>, 'store': <function ResultMultiPlayers.store>, '__dict__': <attribute '__dict__' of 'ResultMultiPlayers' objects>, '__weakref__': <attribute '__weakref__' of 'ResultMultiPlayers' objects>})
__module__ = 'Environment.ResultMultiPlayers'
__weakref__

list of weak references to the object (if defined)