example_of_configuration_singleplayer module

An example of a configuration file to launch some the simulations, for the single-player case.

example_of_configuration_singleplayer.HORIZON = 10000

HORIZON : number of time steps of the experiments. Warning Should be >= 10000 to be interesting “asymptotically”.

example_of_configuration_singleplayer.REPETITIONS = 10

REPETITIONS : number of repetitions of the experiments. Warning: Should be >= 10 to be statistically trustworthy.

example_of_configuration_singleplayer.DO_PARALLEL = True

To profile the code, turn down parallel computing

example_of_configuration_singleplayer.N_JOBS = -1

Number of jobs to use for the parallel computations. -1 means all the CPU cores, 1 means no parallelization.

example_of_configuration_singleplayer.NB_ARMS = 3

Number of arms for non-hard-coded problems (Bayesian problems)

example_of_configuration_singleplayer.LOWER = 0.0

Default value for the lower value of means

example_of_configuration_singleplayer.AMPLITUDE = 1.0

Default value for the amplitude value of means

example_of_configuration_singleplayer.ARM_TYPE

alias of Arms.Bernoulli.Bernoulli

example_of_configuration_singleplayer.ENVIRONMENT_BAYESIAN = False

True to use bayesian problem

example_of_configuration_singleplayer.MEANS = [0.05, 0.49999999999999994, 0.95]

Means of arms for non-hard-coded problems (non Bayesian)

example_of_configuration_singleplayer.configuration = {'averageOn': 0.001, 'environment': [{'arm_type': <class 'Arms.Bernoulli.Bernoulli'>, 'params': [0.05, 0.49999999999999994, 0.95]}], 'finalRanksOnAverage': True, 'horizon': 10000, 'n_jobs': -1, 'plot_lowerbounds': True, 'policies': [{'archtype': <class 'Policies.Uniform.Uniform'>, 'params': {}}, {'archtype': <class 'Policies.TakeFixedArm.TakeFixedArm'>, 'params': {'armIndex': 0}}, {'archtype': <class 'Policies.TakeFixedArm.TakeFixedArm'>, 'params': {'armIndex': 1}}, {'archtype': <class 'Policies.TakeFixedArm.TakeFixedArm'>, 'params': {'armIndex': 2}}, {'archtype': <class 'Policies.UCB.UCB'>, 'params': {}}, {'archtype': <class 'Policies.Thompson.Thompson'>, 'params': {}}, {'archtype': <class 'Policies.klUCB.klUCB'>, 'params': {}}], 'repetitions': 10, 'verbosity': 6}

This dictionary configures the experiments

example_of_configuration_singleplayer.nbArms = 3

Number of arms in the first environment