Zerosum

Results 3 issues of Zerosum

Spectral中计算tp,tn,fp,fn这些使用的不是sklearn而是开发者自己写的compute_metric.py,请恕我才疏学浅理解不能。 **``` def compute_confusion_matrix(precited,expected): predicted = np.array(precited,dtype = int) expected = np.array(expected,dtype = int) part = precited**expected # 对结果进行分类,亦或使得判断正确的为0,判断错误的为1 ```** 且不论precited和predicted分别是什么(说到底precited是哪国语言?),是否可以使用通用一点的方法做异或计算?事实上我用spectral所得出的实验数据完全离谱,tp+fn既不是投毒样本量也不是干净样本量。 另:我用badnets对cifar10投毒,并以test_Spectral.py中的代码执行过滤,最终tp=58, tn=46473, fp=1027, fn=2442。也许是我做错了,但我衷心建议为防御方法附上开发者的一个执行结果及参数设置以作为参考,毕竟论文里的数据并非总值得信任。

When outputting a formatted string to a file, print_line() directly replaces "%s" with the target string and copies it into sendbuff. In the main function, the concatenated string can be...