EvSys

SimpleSDFTDataset

Stock :class:SDFTDataset over :class:~evsys_sdk.data_types.PromptExample rows: the question lives in inputs['question'] and the gold answer in expected. Wraps modulo dataset length so the loop can exceed one epoch (no _RepeatingSDFTProvider hack needed).

Attributes

attributerowslist[PromptExample]
attributebatch_sizeint

Functions

func__post_init__(self) -> None
paramself

Returns

None
func__len__(self) -> int
paramself

Returns

int
funcget_batch(self, step_idx) -> tuple[list[str], list[str]]
paramself
paramstep_idxint

Returns

tuple[list[str], list[str]]
func__init__(self, rows, batch_size) -> None
paramself
paramrowslist[PromptExample]
parambatch_sizeint

Returns

None

On this page