示例#1
0
 def cluster(self):
     for i in range(self.numberOfClusters):
         self.means.append(
             VectorGenerator.getRandomGaussianUnitVector(
                 len(self.vectors[0]), 4, 1).values())
     clusterer = cluster.EMClusterer(self.means, bias=0.1)
     return clusterer.cluster(self.vectors, True, trace=True)
示例#2
0
    def getGaussianUnitVector(): VectorGenerator.getRandomGaussianUnitVector(10, 0, 1)
        
if __name__ == '__main__':
示例#3
0
 def cluster(self):
     for i in range(self.numberOfClusters): self.means.append(VectorGenerator.getRandomGaussianUnitVector(len(self.vectors[0]), 4, 1).values())
     clusterer = cluster.EMClusterer(self.means, bias=0.1) 
     return clusterer.cluster(self.vectors, True, trace=True)
示例#4
0
 def getGaussianUnitVector():
     VectorGenerator.getRandomGaussianUnitVector(10, 0, 1)