Policies.UniformOnSome module

UniformOnSome: a fully uniform policy who selects randomly (uniformly) an arm among a fix set, at each step (stupid).

class Policies.UniformOnSome.UniformOnSome(nbArms, armIndexes=None, lower=0.0, amplitude=1.0)[source]

Bases: Policies.Uniform.Uniform

UniformOnSome: a fully uniform policy who selects randomly (uniformly) an arm among a fix set, at each step (stupid).

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

Nothing to do.

nbArms = None

Number of arms

armIndexes = None

Arms from where to uniformly sample

__str__()[source]

-> str

choice()[source]

Uniform choice from armIndexes.

__module__ = 'Policies.UniformOnSome'