TypeError: tuple indices must be integers or slices, not tuple
针对这个问题,是因为匈牙利算法在python库中发生了变化,通过 from sklearn.utils.linear_assignment_ import linear_assignment得到的结果与from scipy.optimize import linear_sum_assignment as linear_assignment得到的结果不一样,而sklearn库中的这个方法已经去除了。用scipy库中,就要把对应的代码做调整。
TypeError: tuple indices must be integers or slices, not tuple
TypeError: tuple indices must be integers or slices, not tuple针对这个问题,是因为匈牙利算法在python库中发生了变化,通过from sklearn.utils.linear_assignment_ import linear_assignment得到的结果与from scipy.optimize import linear_sum_assignment as linear_assignment得到的结果不一样,而sklearn库中的这个方