Previous changeset 6:5721182715a7 (2018-11-15) Next changeset 8:68a5f2db55b9 (2018-11-15) |
Commit message:
enchanted .py |
modified:
Marea/marea_cluster.py |
b |
diff -r 5721182715a7 -r 771a40335876 Marea/marea_cluster.py --- a/Marea/marea_cluster.py Thu Nov 15 05:32:33 2018 -0500 +++ b/Marea/marea_cluster.py Thu Nov 15 06:12:15 2018 -0500 |
[ |
@@ -554,7 +554,7 @@ distorsion.append(tmp_kmeans.inertia_) predict = tmp_kmeans.predict(cluster_data) predict = [x+1 for x in predict] - classe = (pd.DataFrame(zip(cluster_data.index, predict))).astype(str) + classe = (pd.DataFrame(list(zip(cluster_data.index, predict)))).astype(str) dest = 'cluster_out/K=' + str(i) + '_' + args.name+'.tsv' classe.to_csv(dest, sep = '\t', index = False, header = ['Patient_ID', 'Class']) |