You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这是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]
这是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吗?
The text was updated successfully, but these errors were encountered: