@@ -45,7 +45,7 @@ def go(X, K):
4545 C_init = X [indices_init ]
4646
4747
48- withskl = False
48+ withskl = True
4949 witheak = True
5050
5151 if withskl == True :
@@ -61,15 +61,15 @@ def go(X, K):
6161 sys .path .append ("/home/james/clustering/idiap/eakmeans/lib" )
6262 import kmeans
6363 teak0 = time .time ()
64- bla = kmeans .get_clustering (X , K , verbose = 1 , init = indices_init , n_threads = 1 )
64+ bla = kmeans .get_clustering (X , K , verbose = 1 , init = indices_init , n_threads = 1 )#, algorithm = "syin-ns")
6565 teak1 = time .time ()
6666
6767
6868
69- z = pyzentas .pyzen (K = K , metric = 'l2' , energy = 'quadratic' , max_itok = 0.0 , max_time = .0 , max_rounds = 0 , seed = npr .randint (1000 ), patient = True , nthreads = 1 , init = indices_init , with_tests = False , capture_output = False )
69+ z = pyzentas .pyzen (K = K , metric = 'l2' , energy = 'quadratic' , max_itok = 0.0 , max_time = .0 , max_rounds = 0 , seed = npr .randint (1000 ), patient = True , nthreads = 1 , init = indices_init , with_tests = True , capture_output = True )
7070 tzen0 = time .time ()
7171 print X .shape
72- tangerine = z .den (X , do_vdimap = False , do_refinement = True , rf_max_rounds = 10000000 ) #8 , rf_alg = "yinyang ")
72+ tangerine = z .den (X , do_vdimap = False , do_refinement = True , rf_max_rounds = 10000000 , rf_alg = "exponion " )
7373 tzen1 = time .time ()
7474 print tangerine ["output" ].split ("\n " )[- 2 ::]
7575
@@ -83,9 +83,12 @@ def go(X, K):
8383
8484
8585
86- K = 500
86+ K = 50
8787npr .seed (1000 )
88- X = npr .randn (50000 , 8 )
88+ #X = npr.randn(50000, 8)
89+ X = rna .get_rna ()[0 :5000 , 2 ::]
90+ X += 0.01 * npr .randn (X .shape [0 ], X .shape [1 ])
91+
8992go (X , K )
9093
9194def sklearn_elkan ():
0 commit comments