Ant,X,count = nt.main(fname) code = cl_ant.ant_label(Ant) p, e, c = eva.Evaluate_All(code, X.tolist(), d, fname) P = P + p E = E + e C = C + c #kmeans.show_plot(code, X) print "NO-THRESHOLDS Algorithm : %s" %N print "P: ", P/float(N) print "E: ", E/float(N) print "C: ", C/float(N) print "count:", count #--- K-means --- P = 0.0 E = 0.0 C = 0.0 for i in range(N): #time.sleep(1) code,X = kmeans.main(fname,k) p, e, c = eva.Evaluate_All(code, X.tolist(), d, fname) P = P + p E = E + e C = C + c print "K-means Algorithm : %s" %N print "P: ", P/float(N) print "E: ", E/float(N) print "C: ", C/float(N)