未验证 提交 2a51f751 编写于 作者: rictjo's avatar rictjo 提交者: GitHub

Update quantification.py

上级 cf0f8d5d
......@@ -2229,7 +2229,7 @@ def confusion_lengths ( BCM:np.array ) -> list[np.array] :
for i_ in range( ND ) :
j_ = ND-1-i_ # NOT USED
rBCM = rankdata( BCM , 'average' , axis=i_ )
rBCM = np.abs( 1 + np.max ( rBCM , axis=i_ ) - rBCM )
rBCM = 1 + np.abs( np.max ( rBCM , axis=i_ ) - rBCM )
Z = np.sum( BCM , axis=i_ )
SAIGA .append ( np.sum(BCM*rBCM/Z,axis=i_ ) )
return ( SAIGA )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册