CausalEGM.util.Semi_Twins_sampler

class CausalEGM.util.Semi_Twins_sampler(batch_size=32, seed=0, path='../data/Twins')[source]

Twins semi synthetic dataset sampler (inherited from Base_sampler).

Parameters:
  • batch_size – Int object denoting the batch size for mini-batch training. Default: 32.

  • seed – Int object denoting the random seed. Default: 0.

  • path – Str obejct denoting the path to the original data.

Examples

>>> from CausalEGM import Semi_Twins_sampler
>>> ds = Semi_Twins_sampler(batch_size=32, path='../data/Twins')
__init__(batch_size=32, seed=0, path='../data/Twins')[source]

Methods

__init__([batch_size, seed, path])

create_idx_generator(sample_size[, random_seed])

load_all()

next_batch()