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

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

src/d/p/dpnewman-0.01/test/test_dpnewman.py   dpnewman(Download)
                        [0,0,0,0,1,1,1,1,0]])
        mat=mat.astype(np.float64)
        g = dpnewman.DPNewman(T=100,c1=10.0,c2=1.0,phi=0.5,thresh=0.1)
        g.fit(mat)
        print g.get_cluster()