Mercurial > repos > bimib > marea
changeset 7:771a40335876 draft
enchanted .py
author | bimib |
---|---|
date | Thu, 15 Nov 2018 06:12:15 -0500 |
parents | 5721182715a7 |
children | 68a5f2db55b9 |
files | Marea/marea_cluster.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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'])