MCPcopy Create free account

hub / github.com/cjdd3b/nicar2013 / functions

Functions42 in github.com/cjdd3b/nicar2013

↓ 1 callersFunction_normalize
Preprocessing to normalize data items on a 0-1 scale.
lightning-talk/nearest-neighbors/nn.py:19
↓ 1 callersMethodadd_set
(self, s, label=None)
lightning-talk/lsh/lsh.py:100
↓ 1 callersFunctionclean
A function for cleaning up the input text. Ideally we'd strip things like punctuation here, but instead we're just being lazy and lowercasing
lightning-talk/random-forest/classify.py:29
↓ 1 callersMethodget_bandwidth
Approximates the bandwidth (number of rows in each band) needed to get threshold. Threshold t = (1/b) ** (1/r) where
lightning-talk/lsh/lsh.py:55
↓ 1 callersMethodget_bandwidth
Approximates the bandwidth (number of rows in each band) needed to get threshold. Threshold t = (1/b) ** (1/r) where
lightning-talk/lsh/utils/lsh.py:55
↓ 1 callersMethodget_sets
(self)
lightning-talk/lsh/lsh.py:116
↓ 1 callersMethodhash
Generate hashvals for this signature
lightning-talk/lsh/lsh.py:50
↓ 1 callersMethodhash
Generate hashvals for this signature
lightning-talk/lsh/utils/lsh.py:50
↓ 1 callersMethodhash_functions
Returns dim different hash functions
lightning-talk/lsh/lsh.py:16
↓ 1 callersMethodhash_functions
Returns dim different hash functions
lightning-talk/lsh/utils/lsh.py:16
↓ 1 callersMethodsets
Return a list of each disjoint set
lightning-talk/lsh/unionfind.py:66
↓ 1 callersMethodsets
Return a list of each disjoint set
lightning-talk/lsh/utils/unionfind.py:66
↓ 1 callersFunctionshingle
Not using a generator here, unlike the initial implementation, both because it doesn't save a ton of memory in this use case and because
lightning-talk/lsh/lsh.py:121
↓ 1 callersMethodsign
Return the signature for object s
lightning-talk/lsh/lsh.py:20
↓ 1 callersMethodsign
Return the signature for object s
lightning-talk/lsh/utils/lsh.py:20
↓ 1 callersMethodunion
Find the sets containing the objects and merge them all.
lightning-talk/lsh/unionfind.py:57
↓ 1 callersMethodunion
Find the sets containing the objects and merge them all.
lightning-talk/lsh/utils/unionfind.py:57
Method__getitem__
Find and return the name of the set containing the object.
lightning-talk/lsh/unionfind.py:33
Method__getitem__
Find and return the name of the set containing the object.
lightning-talk/lsh/utils/unionfind.py:33
Method__init__
Create a new empty union-find structure.
lightning-talk/lsh/unionfind.py:28
Method__init__
(self, dim)
lightning-talk/lsh/lsh.py:12
Method__init__
(self, length, threshold)
lightning-talk/lsh/lsh.py:45
Method__init__
(self, width=10, threshold=0.5)
lightning-talk/lsh/lsh.py:93
Method__init__
Create a new empty union-find structure.
lightning-talk/lsh/utils/unionfind.py:28
Method__init__
(self, dim)
lightning-talk/lsh/utils/lsh.py:12
Method__init__
(self, length, threshold)
lightning-talk/lsh/utils/lsh.py:45
Method__init__
(self, width=10, threshold=0.5)
lightning-talk/lsh/utils/lsh.py:93
Method__iter__
Iterate through all items ever found or unioned by this structure.
lightning-talk/lsh/unionfind.py:53
Method__iter__
Iterate through all items ever found or unioned by this structure.
lightning-talk/lsh/utils/unionfind.py:53
Methodadd_set
(self, s, label=None)
lightning-talk/lsh/utils/lsh.py:100
Methodget_sets
(self)
lightning-talk/lsh/utils/lsh.py:116
Methodget_threshold
(self)
lightning-talk/lsh/lsh.py:78
Methodget_threshold
(self)
lightning-talk/lsh/utils/lsh.py:78
Methodhash_factory
(n)
lightning-talk/lsh/lsh.py:30
Methodhash_factory
(n)
lightning-talk/lsh/utils/lsh.py:30
Methodhash_functions
Return dim different hash functions
lightning-talk/lsh/lsh.py:28
Methodhash_functions
Return dim different hash functions
lightning-talk/lsh/utils/lsh.py:28
Functionjaccard_sim
Jaccard similarity between two sets
lightning-talk/lsh/lsh.py:129
Functionjaccard_sim
Jaccard similarity between two sets
lightning-talk/lsh/utils/lsh.py:129
Functionshingle
Not using a generator here, unlike the initial implementation, both because it doesn't save a ton of memory in this use case and because
lightning-talk/lsh/utils/lsh.py:121
Methodsign
Returns minhash signature for set s
lightning-talk/lsh/lsh.py:34
Methodsign
Returns minhash signature for set s
lightning-talk/lsh/utils/lsh.py:34