document
optimus_dl.modules.data.datasets.strategies.document
¶
DocumentStrategy
¶
Bases: BaseStrategy
Yields full documents from the dataset. Supports both sequential and random ordering via shuffling.
Source code in optimus_dl/modules/data/datasets/strategies/document.py
DocumentStrategyConfig
dataclass
¶
Bases: BaseStrategyConfig
DocumentStrategyConfig(_name: str | None = None, shuffle: bool = False)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shuffle
|
bool
|
|
False
|