You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pos = np.copy(br_real)
pos[br_real < 0] = 1
pos = np.max((1. - pos), axis=1)
pos = np.array([0 if i<0 else i for i in pos])
neg = np.copy(br_real)
neg[br_real > 0] = -1
neg = np.max((1. + neg), axis=1)
neg = np.array([0 if i<0 else i for i in neg])
嗨,您好,我最近在研究AliPy的代码。(multilabel.py 1037-1045行)
ALiPy/alipy/query_strategy/multi_label.py
Line 1038 in ab6c1e3
这里的Adaptive算法实现似乎有点小问题。
设想这么一种情况,
br_real
矩阵每个元素都是2,那么pos
矩阵的结果可能为负数。参考原论文
可知,
pos
不可能存在负数。这里忽略了
br_real
元素都大于0的情况。同样,下面在计算neg
的时候也有同样的问题。The text was updated successfully, but these errors were encountered: