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

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

src/g/a/GADS7-HEAD/src/lesson12/kmeans/test_k_means.py   GADS7(Download)
def test_transform():
    km = KMeans(n_clusters=n_clusters)
    km.fit(X)
    X_new = km.transform(km.cluster_centers_)
 

src/g/a/gadsdc-HEAD/18-clustering/test_kmeans_exercise.py   gadsdc(Download)
def test_transform():
    km = KMeans(n_clusters=n_clusters)
    km.fit(X)
    X_new = km.transform(km.cluster_centers_)