Random#
- class statrl.settings.bandits.stochastic.batch.agents._Random.Random(env)[source]#
Bases:
BatchBanditAgentUniform exploration: fill each batch with independent random arms.
- Parameters:
env (BatchMAB) – The environment, read only for its number of arms.
See also
statrl.settings.bandits.stochastic.batch.agents._Oracle.OracleThe opposite baseline.
Methods
__init__(env)batchplay(batchsize)Fill the batch with independent uniform draws.
batchupdate(batcharm, batchreward)Ignore the batch's rewards (this agent does not learn).
play()Draw an arm uniformly at random.
reset()Start a new run.
update(arm, reward)Ignore the observed reward (this agent does not learn).