--- title: Sampling keywords: fastai sidebar: home_sidebar summary: "Data sampling methods." description: "Data sampling methods." nb_path: "nbs/transforms/transforms.sampling.ipynb" ---
simple_negative_sampling
simple_negative_sampling(data, num_negatives=4, binarization=False, feedback_column='RATING')
data
num_negatives
4
binarization
False
feedback_column
'RATING'
class
AbstractNegativeSampler
AbstractNegativeSampler(train, val, test, user_count, item_count, sample_size, seed, flag, save_folder)
train
val
test
user_count
item_count
sample_size
seed
flag
save_folder
RandomNegativeSampler
RandomNegativeSampler(train, val, test, user_count, item_count, sample_size, seed, flag, save_folder) :: AbstractNegativeSampler
PopularNegativeSampler
PopularNegativeSampler(train, val, test, user_count, item_count, sample_size, seed, flag, save_folder) :: AbstractNegativeSampler