Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visual.py中可视化结果错了 #9

Open
ZaaLoo opened this issue May 4, 2021 · 0 comments
Open

visual.py中可视化结果错了 #9

ZaaLoo opened this issue May 4, 2021 · 0 comments

Comments

@ZaaLoo
Copy link

ZaaLoo commented May 4, 2021

这是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吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant