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

predict.py 中最后一行余弦距离的判定是否写反了 #5

Open
XinArkh opened this issue Nov 23, 2018 · 0 comments
Open

predict.py 中最后一行余弦距离的判定是否写反了 #5

XinArkh opened this issue Nov 23, 2018 · 0 comments

Comments

@XinArkh
Copy link

XinArkh commented Nov 23, 2018

余弦值越接近1,两向量夹角越小,那么predict.py 中最后一行:
print(np.mean((pre_y < (true_mean + false_mean)/2) == testY.astype(bool)))
小于号是否应该改成大于号呢?

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