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/GA-DAT-08-HEAD/Homework_11/student/test_k_means.py   GA-DAT-08(Download)
 
    # sanity check: predict centroid labels
    pred = km.predict(km.cluster_centers_)
    assert_array_equal(pred, np.arange(n_clusters))
 
    # sanity check: re-predict labeling for training set samples
    pred = km.predict(X)