class_docstr: NegativeSampler class for NCF. Samples a subset of negative items from a given population of items.
class_docstr_tok: ["NegativeSampler","class","for","NCF",".","Samples","a","subset","of","negative","items","from","a","given","population","of","items","."]
docstr: Method for sampling uniformly from a population of negative items
  
  Returns: list
docstr_tok: ["Method","for","sampling","uniformly","from","a","population","of","negative","items","Returns",":","list"]
code: def sample(self):
      """Method for sampling uniformly from a population of negative items
  
      Returns: list
      """
      return self._sample()
  
imports: import os
  from collections import OrderedDict
  import random
  import numpy
  import pandas
  import csv
  import logging
  from tqdm import tqdm
  from recommenders.utils.constants import DEFAULT_ITEM_COL, DEFAULT_USER_COL, DEFAULT_RATING_COL
label_desc: Use image node_id 2 for calling the NegativeSampler obj's underlying member method code with example usage: obj.sample() and returns: self