class_docstr: State of the Hungarian algorithm.
  
  Parameters
  ----------
  cost_matrix : 2D matrix
      The cost matrix. Must have shape[1] >= shape[0].
class_docstr_tok: ["State","of","the","Hungarian","algorithm",".","Parameters","--","--","--","--","--","cost_matrix",":","2D","matrix","The","cost","matrix",".","Must","have","shape","[","1","]",">","=","shape","[","0","]","."]
code: def __init__(self, cost_matrix):
      self.C = cost_matrix.copy()
  
      n, m = self.C.shape
      self.row_uncovered = np.ones(n, dtype=bool)
      self.col_uncovered = np.ones(m, dtype=bool)
      self.Z0_r = 0
      self.Z0_c = 0
      self.path = np.zeros((n + m, 2), dtype=int)
      self.marked = np.zeros((n, m), dtype=int)
  
file_path: catboost/contrib/python/scipy/py2/scipy/optimize/_hungarian.py
imports: import numpy
label_desc: Use image node_id 1 to create a new _Hungary object from inherited base classes: object with example: obj = _Hungary(cost_matrix)