class_docstr: Defines a Bin specified by a half-open interval [left_end, right_end) where the sub-score is calculated using
  a linear function of the feature value (requires the feature to evaluate to a numerical value).
docstr: Checks whether this bin overlaps with the given other bin.
  
  @param other: An instance of LinearIntervalBin or a subclass thereof
  @return: bool, true if the bins share at least one element and false otherwise
docstr_tok: ["Checks","whether","this","bin","overlaps","with","the","given","other","bin",".","@","param","other",":","An","instance","of","LinearIntervalBin","or","a","subclass","thereof","@","return",":","bool",",","true","if","the","bins","share","at","least","one","element","and","false","otherwise"]
code: def overlaps(self, other: "LinearIntervalBin") -> bool:
      """
      Checks whether this bin overlaps with the given other bin.
  
      @param other: An instance of LinearIntervalBin or a subclass thereof
      @return: bool, true if the bins share at least one element and false otherwise
      """
      if not isinstance(other, LinearIntervalBin):
          raise ValueError(
              "other must be an instance of LinearIntervalBin or a subclass thereof but it"
              'is an instance of "{}"'.format(str(other.__class__))
          )
      return (self.left_end < other.right_end) and (
          self.right_end > other.left_end
      )
  
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 4 for calling the LinearIntervalBin obj's underlying member method code with example usage: obj.overlaps(other) and returns: unknown