Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/t/streaming_lsh-HEAD/streaming_lsh/streaming_lsh_clustering.py   streaming_lsh(Download)
@author: kykamath
'''
from classes import RandomGaussianUnitVector, VectorPermutation,\
    SignaturePermutationWithTrie, Cluster, UtilityMethods,\
    SignaturePermutationWithSortedList
        signatureType = clustering_settings.get('signature_type', 'signature_type_trie')
        if signatureType=='signature_type_trie': self.signaturePermutations = [SignaturePermutationWithTrie(clustering_settings['signature_length']) for i in range(clustering_settings['number_of_permutations'])]
        else: self.signaturePermutations = [SignaturePermutationWithSortedList(clustering_settings['signature_length']) for i in range(clustering_settings['number_of_permutations'])]
        self.phraseTextAndDimensionMap, self.clusters = TwoWayMap(), {}
        self.clustering_settings = clustering_settings

src/s/t/streaming_lsh-HEAD/streaming_lsh/nearest_neighbor_lsh.py   streaming_lsh(Download)
@author: kykamath
'''
from classes import RandomGaussianUnitVector, VectorPermutation,\
    SignaturePermutationWithTrie, UtilityMethods, Document,\
    SignaturePermutationWithSortedList
        signatureType = settings.get('signature_type', 'signature_type_trie')
        if signatureType=='signature_type_trie': self.signaturePermutations = [SignaturePermutationWithTrie(settings['signature_length']) for i in range(settings['number_of_permutations'])]
        else: self.signaturePermutations = [SignaturePermutationWithSortedList(settings['signature_length']) for i in range(settings['number_of_permutations'])]
 
        self.phraseTextAndDimensionMap = TwoWayMap()