parameters: (self, num_true, num_sampled, unique, range_max, seed=0, remove_accidental_hits=False)
docstring: Initialize UniformCandidateSampler
docstring_summary: Initialize UniformCandidateSampler
docstring_tokens: Initialize UniformCandidateSampler
function: def __init__(self, num_true, num_sampled, unique, range_max, seed=0, remove_accidental_hits=False):
          """Initialize UniformCandidateSampler"""
          Validator.check_value_type("num_true", num_true, [int], self.name)
          Validator.check_value_type("num_sampled", num_sampled, [int], self.name)
          Validator.check_value_type("unique", unique, [bool], self.name)
          Validator.check_value_type("range_max", range_max, [int], self.name)
          Validator.check_value_type("seed", seed, [int], self.name)
          Validator.check_value_type("remove_accidental_hits", remove_accidental_hits, [bool], self.name)
          Validator.check("value of num_sampled", num_sampled, '', 0, Rel.GT, self.name)
          Validator.check("value of range_max", range_max, '', 0, Rel.GT, self.name)
          self.num_true = num_true
          if unique:
              Validator.check('value of num_sampled', num_sampled, "value of range_max", range_max, Rel.LE, self.name)
          Validator.check("value of seed", seed, '', 0, Rel.GE, self.name)
          self.num_sampled = num_sampled
function_tokens: def __init__ ( self , num_true , num_sampled , unique , range_max , seed = 0 , remove_accidental_hits = False ) : Validator . check_value_type ( "num_true" , num_true , [ int ] , self . name ) Validator . check_value_type ( "num_sampled" , num_sampled , [ int ] , self . name ) Validator . check_value_type ( "unique" , unique , [ bool ] , self . name ) Validator . check_value_type ( "range_max" , range_max , [ int ] , self . name ) Validator . check_value_type ( "seed" , seed , [ int ] , self . name ) Validator . check_value_type ( "remove_accidental_hits" , remove_accidental_hits , [ bool ] , self . name ) Validator . check ( "value of num_sampled" , num_sampled , '' , 0 , Rel . GT , self . name ) Validator . check ( "value of range_max" , range_max , '' , 0 , Rel . GT , self . name ) self . num_true = num_true if unique : Validator . check ( 'value of num_sampled' , num_sampled , "value of range_max" , range_max , Rel . LE , self . name ) Validator . check ( "value of seed" , seed , '' , 0 , Rel . GE , self . name ) self . num_sampled = num_sampled