Samplers

Sampler

class openrec.legacy.utils.samplers.Sampler(dataset, batch_size, num_process=5)
_get_runner()
next_batch()

Explicit Sampler

class openrec.legacy.utils.samplers.ExplicitSampler(dataset, batch_size, num_process=5, chronological=False)
_get_runner()

Pairwise Sampler

class openrec.legacy.utils.samplers.PairwiseSampler(dataset, batch_size, chronological=False, num_process=5, seed=0)
_get_runner()

Pointwise Sampler

class openrec.legacy.utils.samplers.PointwiseSampler(dataset, batch_size, pos_ratio=0.5, num_process=5, chronological=False, seed=0)
_get_runner()