Classify-Text icon indicating copy to clipboard operation
Classify-Text copied to clipboard

visual.py中可视化结果错了

Open ZaaLoo opened this issue 4 years ago • 0 comments

这是readdata文件中的向量化: #pos都是[0,1],neg都是[1,0] positive_label_lists=[[0,1] for _ in positive_sample_lists] negative_label_lists=[[1,0] for _ in negative_sample_lists]

这是prediction: self.predictions=tf.argmax(self.result,1,name="predictions")

这是结果统计: for i, num in enumerate(prediction): if num == 0: positive+=1 else: negative+=1 pos不应该是1吗?[0,1] argmax之后不就是1吗?

ZaaLoo avatar May 04 '21 09:05 ZaaLoo