# coding = utf-8
'''
用匈牙利算法实现标签的匹配问题,并且输出最后的标签
'''
import numpy as np
from scipy.optimize import linear_sum_assignment
label = np.array([1,1,2,1,1,2,2,2,3,2,2,3,1,3,3,2,3])
gnd = np.array([2,2,2,2,2,2,3,3,3,3,3,3,1,1,1,1,1])
K = np.unique(gnd)
K_num = le