def compare(self):
for i in range(self.count):
for j in range(self.count):
if i < j:
tst, pvalue = stats.ttest_ind(self.errors[i], self.errors[j])
if pvalue < 0.05:
print("{0} is significantly better than {1}".format(self.names[i], self.names[j]))
print("{0} avg err = {1}, {2} avg err = {3}".format(
self.names[i], np.average(self.errors[i]),
self.names[j], np.average(self.errors[j])
))
else:
print("{0} and {1} are not significantly different".format(self.names[i], self.names[j]))
classification_performance.py 文件源码
python
阅读 32
收藏 0
点赞 0
评论 0
评论列表
文章目录