Condition Subset#
Utilities for handling condition dataset subsets.
- class _ConditionSubset(condition, indices, automatic_batching)[source]#
Bases:
objectWrapper around a condition dataset restricted to a subset of indices.
The class behaves similarly to
torch.utils.data.Subsetand supports cyclic indexing together with optional automatic batching.Initialization of the
_ConditionSubsetclass.- Parameters:
condition (BaseCondition) – The underlying condition.
indices (list[int]) – The list of indices identifying the subset samples.
automatic_batching (bool) – Whether dataset items should be returned directly or as raw indices.