result = [] k = (idx + 1) * constk # percent = 0.1 + 0.1*idx ep = [] #get the time tools = Tool(data) start = datetime.datetime.now().timestamp() a, b, c = tools.Generic_Algorithm(k, t, percent) end = datetime.datetime.now().timestamp() time.append(end - start) for i in range(10): np.random.shuffle(data) tools = Tool(data) a, b, c, e = tools.Generic_Algorithm_Epoch(k, t, percent, epoch) ep.append(e) if b < bestD: bestR = np.copy(a) bestD = b dict = copy.deepcopy(c) ep = np.asarray(ep) resultSum.append(np.sum(ep, axis=0).tolist()) resultSD.append(np.std(ep, axis=0).tolist()) result = copy.deepcopy(resultSum) result.extend(resultSD) print(result) with open("Result\Summary\GA" + name + "_" + str(k) + "binsize_" + str(t) + "iterate_" + str(percent) + "keepgene.csv", "w",