Samplers

Sampler

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

Explicit Sampler

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

Pairwise Sampler

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

Pointwise Sampler

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