pytyche.experiment.schedule¶
Schedule protocol + shipped variants for per-round visitor counts.
A schedule answers one question per round: how many visitors does round
rounds_completed get? None signals stop. GeometricSchedule is
the doubling-batch default (Perchet 2016; Esfandiari 2021; Che & Namkoong
2023); FixedSchedule and ExplicitSchedule cover flat and
fully-custom plans. Custom implementations only need the two protocol
members — no shipped base class is required.
Classes
|
User-supplied per-round visitor counts; one round per entry. |
|
Flat per-round visitor count for a bounded number of rounds. |
|
Doubling-batch schedule: round |
|
Per-round visitor-count contract consumed by |
- class pytyche.experiment.schedule.Schedule(*args, **kwargs)[source]¶
Bases:
ProtocolPer-round visitor-count contract consumed by
SequentialExperiment.
- class pytyche.experiment.schedule.GeometricSchedule(initial, growth=2.0, n_rounds=None)[source]¶
Bases:
objectDoubling-batch schedule: round
igetsinitial * growth**ivisitors.n_rounds=Noneis open-ended — the operator stops the loop. Non-integer products round to the nearest int.- Parameters:
initial (
int)growth (
float)n_rounds (
int|None)