class_docstr: Defines a Bin specified by a finite set of values and a constant sub-score
docstr: @param feature: An instance of trxf.core.Feature. Specifies the feature to which this bin is associated.
  @param sub_score: The constant sub-score associated with this bin.
  @param values: The set of values that belong to this bin
docstr_tok: ["@","param","feature",":","An","instance","of","trxf.core.Feature",".","Specifies","the","feature","to","which","this","bin","is","associated",".","@","param","sub_score",":","The","constant","sub-score","associated","with","this","bin",".","@","param","values",":","The","set","of","values","that","belong","to","this","bin"]
code: def __init__(
      self, feature: Feature, sub_score: Real, values: Set[Any]
  ):
      """
      @param feature: An instance of trxf.core.Feature. Specifies the feature to which this bin is associated.
      @param sub_score: The constant sub-score associated with this bin.
      @param values: The set of values that belong to this bin
      """
      if len(values) == 0:
          raise ValueError(
              'Expected len(values) > 0, received len(values) == "{}"'.format(
                  len(values)
              )
          )
  
      super(SetBin, self).__init__(feature)
      self._values = values
      self._sub_score = sub_score
  
imports: import abc
  from numbers import Real
  from typing import Dict, Set, Any, Optional
  from aix360.algorithms.rule_induction.trxf.core import Feature
label_desc: Use image node_id 1 to create a new SetBin object from inherited base classes: Bin with example: obj = SetBin(feature, sub_score, values)