Policies.Uniform module

Uniform: the fully uniform policy who selects randomly (uniformly) an arm at each step (stupid).

class Policies.Uniform.Uniform(nbArms, lower=0.0, amplitude=1.0)[source]

Bases: Policies.BasePolicy.BasePolicy

Uniform: the fully uniform policy who selects randomly (uniformly) an arm at each step (stupid).

__init__(nbArms, lower=0.0, amplitude=1.0)[source]

Nothing to do.

nbArms = None

Number of arms

__str__()[source]

-> str

startGame()[source]

Nothing to do.

getReward(arm, reward)[source]

Nothing to do.

choice()[source]

Uniform random choice between 0 and nbArms - 1 (included).

choiceWithRank(rank=1)[source]

Ignore the rank!

__module__ = 'Policies.Uniform'