We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d5465a commit 3527c22Copy full SHA for 3527c22
similarity/jaccard.py
@@ -9,7 +9,7 @@ def __init__(self, k):
9
super().__init__(k)
10
11
def distance(self, s0, s1):
12
- 1.0 - self.similarity(s0, s1)
+ return 1.0 - self.similarity(s0, s1)
13
14
def similarity(self, s0, s1):
15
if s0 is None:
0 commit comments