Sampler

UnPairedRandomSampler

class UnPairedRandomSampler(indices)[source]

Bases: sphinx.ext.autodoc.importer._MockObject

Sampler to return two randomly sampled indices (one for each subset). Internally holds a single delira.data_loading.sampler.random_sampler.RandomSampler per subset

Parameters:indices (list) – a list of integers containing all valid indices
_get_indices(n_indices)[source]

Returns the indices

Parameters:n_indices (int) – the number of indices to return
Returns:list of tuple of ints containing the indices for all subsets.
Return type:list