Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Gehring
LSM
Commits
b0986340
Commit
b0986340
authored
Jun 27, 2021
by
lgehring
Browse files
Merge branch 'develop' of
https://git.cs.uni-paderborn.de/lgehring/lsm
into develop
parents
c5f817bb
a772c8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/knn.py
View file @
b0986340
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment