Skip to content

Commit

Permalink
Fix typo in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatYYX committed Mar 8, 2017
1 parent d6116ba commit 8729e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rltk/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def hamming_similarity(self, s1, s2):

def normalized_hamming_distance(self, s1, s2):
"""
Hamming similarity is computed as 1 - normalized_hamming_distance.
This normalized distance is computed as hamming distance divided by the maximum length of two sequences.
Args:
s1 (str or list): Sequence 1.
Expand Down Expand Up @@ -605,7 +605,7 @@ def cosine_similarity(self, set1, set2):
set2 (set): Set 2.
Returns:
float: Consine similarity.
float: Cosine similarity.
Examples:
>>> tk.cosine_similarity([1, 2, 1, 3], [2, 5, 2, 3])
Expand Down

0 comments on commit 8729e2c

Please sign in to comment.