Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/p/y/pyLICORS-0.0.1dev/pylicors/clustering/kmeans.py   pyLICORS(Download)
import sys
from pylicors.utils.array2frequencies import count_table
from pylicors.utils import relabel_list
 
 
            centroids[ndx[1]] += (1 - big_centroid_weight) * centroids[label]
 
    return{'labels': numpy.array([relabel_list(labels)]),
           'centroids': centroids[not numpy.array(ind)]}