Closed Lufei-github closed 3 years ago
A small question!
Your ccm_trainer.py
159 index = int(cls_total * prop) 160 cls_thres = cls_prob[-index] 161 cls_thres2 = cls_prob[index] 162 thres[k] = cls_thres
For what consideration, you set your thres be the value of the last ten percent of the probability value?
last bacause of (-index), ten percent because of (prop=0.1)
Hello, to obtain the pseudo label, we adopt a thresholding strategy where only the top 10% samples of each class are assigned with pseudo labels.
A small question!
Your ccm_trainer.py
159 index = int(cls_total * prop) 160 cls_thres = cls_prob[-index] 161 cls_thres2 = cls_prob[index] 162 thres[k] = cls_thres
For what consideration, you set your thres be the value of the last ten percent of the probability value?
last bacause of (-index), ten percent because of (prop=0.1)