Skip to content

BatchSampler

gepa.strategies.batch_sampler.BatchSampler

Bases: Protocol[DataId, DataInst]

Functions

next_minibatch_ids(loader: DataLoader[DataId, DataInst], state: GEPAState) -> list[DataId]

Source code in gepa/strategies/batch_sampler.py
def next_minibatch_ids(self, loader: DataLoader[DataId, DataInst], state: GEPAState) -> list[DataId]: ...