Did I find the right examples for you? yes no

All Samples(5)  |  Call(1)  |  Derive(0)  |  Import(4)

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

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

src/s/t/streaming_lsh-HEAD/streaming_lsh/demo/OfflineLSHClusteringDemo.py   streaming_lsh(Download)
sys.path.append('../')
import numpy
from classes import SignaturePermutationWithTrie, Document, RandomGaussianUnitVector,\
    VectorPermutation
from library.vector import Vector

src/s/t/streaming_lsh-HEAD/streaming_lsh/tests/classes_tests.py   streaming_lsh(Download)
from Bio import trie
from library.classes import TwoWayMap
from classes import Signature, SignaturePermutationWithTrie, SignatureTrie, Document,\
    RandomGaussianUnitVector, Permutation, VectorPermutation, Cluster,\
    UtilityMethods
    def setUp(self): 
        self.vector = RandomGaussianUnitVector(dimensions=5, mu=0, sigma=1)
        self.permutation = VectorPermutation(dimensions=5)
    def test_initialization(self): self.assertEquals('%0.0f'%self.vector.mod(),'1')
    def test_getPermutedDimensionValue(self): self.assertEqual(self.vector[self.permutation.applyFunction(10)], self.vector.getPermutedDimensionValue(self.permutation, 10))