mirror of https://github.com/Yomguithereal/fog.git
This commit is contained in:
parent
a5e9bd85da
commit
1359a0d6db
|
@ -38,6 +38,8 @@ sparse_cosine_similarity({'apple': 34, 'pear': 3}, {'pear': 1, 'orange': 1})
|
|||
* **A** *Counter*: first weighted set. Must be a dictionary mapping keys to weights.
|
||||
* **B** *Counter*: second weighted set. Muset be a dictionary mapping keys to weights.
|
||||
|
||||
---
|
||||
|
||||
#### jaccard_similarity
|
||||
|
||||
Computes the Jaccard similarity of two arbitrary iterables.
|
||||
|
@ -55,6 +57,8 @@ jaccard_similarity('context', 'contact')
|
|||
* **A** *iterable*: first sequence to compare.
|
||||
* **B** *iterable*: second sequence to compare.
|
||||
|
||||
---
|
||||
|
||||
#### weighted_jaccard_similarity
|
||||
|
||||
Computes the weighted Jaccard similarity of two weighted sets. Those sets have to be represented as counters.
|
||||
|
|
Loading…
Reference in New Issue