class_docstr: OTMatchingExplainer provides explainations for a matching
  that satisfies the transport polytope constraints.
  Given a matching, it produces a set of alternative matchings, 
  where each alternate contrasts with the provided instance 
  by a sparse set of salient matchings. [#]_.
  
  This is akin to a search engine providing alternative suggestions
  relevant to a search string. OTMatchingExplainer aims to provide
  the same for matchings.
  
  References:
      .. [#] `Fabian Lim, Laura Wynter, Shiau Hong Lim, 
         "Order Constraints in Optimal Transport", 
         2022
         <https://arxiv.org/abs/2110.07275>`_
class_docstr_tok: ["OTMatchingExplainer","provides","explainations","for","a","matching","that","satisfies","the","transport","polytope","constraints",".","Given","a","matching",",","it","produces","a","set","of","alternative","matchings",",","where","each","alternate","contrasts","with","the","provided","instance","by","a","sparse","set","of","salient","matchings",".","[","#","]","_",".","This","is","akin","to","a","search","engine","providing","alternative","suggestions","relevant","to","a","search","string",".","OTMatchingExplainer","aims","to","provide","the","same","for","matchings",".","References",":","..","[","#","]","`","Fabian","Lim",",","Laura","Wynter",",","Shiau","Hong","Lim",",","``","Order","Constraints","in","Optimal","Transport","''",",","2022","<","https",":","\/\/arxiv.org\/abs\/2110.07275",">","`","_"]
docstr: Initialize the OTMatchingExplainer
docstr_tok: ["Initialize","the","OTMatchingExplainer"]
code: def __init__(
      self,
      deactivate_bounds: bool = False,
      error_limit: float = 1e-3,
  ):
      """
      Initialize the OTMatchingExplainer
      """
  
      import sys
  
      if sys.version_info.major == 2:
          super(OTMatchingExplainer, self).__init__()
      else:
          super().__init__()
  
      self._deactivate_bounds = deactivate_bounds
      self._error_limit = error_limit
  
file_path: AIX360/aix360/algorithms/matching/order_constraints.py
imports: import numpy
  from aix360.algorithms.lwbe import LocalWBExplainer
  from typing import Tuple, Optional, List
  from typing import NamedTuple
label_desc: Use image node_id 1 to create a new OTMatchingExplainer object from inherited base classes: LocalWBExplainer with example: obj = OTMatchingExplainer(deactivate_bounds, error_limit)