Policies.TakeFixedArm module

TakeFixedArm: always select a fixed arm. This is the perfect static policy if armIndex = bestArmIndex (not realistic, for test only).

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

Bases: Policies.BasePolicy.BasePolicy

TakeFixedArm: always select a fixed arm. This is the perfect static policy if armIndex = bestArmIndex (not realistic, for test only).

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

New policy.

nbArms = None

Number of arms

armIndex = None

Fixed arm

__str__()[source]

-> str

startGame()[source]

Nothing to do.

getReward(arm, reward)[source]

Nothing to do.

choice()[source]

Always the same choice.

choiceWithRank(rank=1)[source]

Ignore the rank.

__module__ = 'Policies.TakeFixedArm'