Commit a772c8df authored by markus's avatar markus
Browse files

KNN fix

parent 9b804fa6
......@@ -37,7 +37,7 @@ def knn(p : List, n : List, instance : List, d = eucl_dist) -> bool:
else:
negatives += 1
return True if positives > negatives else False
return positives > negatives
if __name__ == "__main__":
# Testing for implementation
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment