Closed SunnyWuYang closed 2 years ago
I'm confused about
conf[:,cid] = cf[:,cid]/cf[:,cid].sum()
incalculate_result()
function(util.py). In this paper and other papers, the definition of class accuracy is: $\frac{P{ii}}{\sum{j} P_{ij}$, in this way, the code should beconf[cid,:] = cf[cid,:]/cf[cid,:].sum()
You can refer to this repo for the metric code.
https://github.com/yuxiangsun/RTFNet/blob/master/util/util.py
I'm confused about
conf[:,cid] = cf[:,cid]/cf[:,cid].sum()
incalculate_result()
function(util.py). In this paper and other papers, the definition of class accuracy is: $\frac{P{ii}}{\sum{j} P_{ij}$, in this way, the code should beconf[cid,:] = cf[cid,:]/cf[cid,:].sum()