comparison numeric_clustering.xml @ 14:6bbf5cb20652 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 7c2fd140e89605fe689c39e21d70a400545e38cf
author bgruening
date Tue, 10 Jul 2018 03:11:22 -0400
parents 40f3318b61c2
children f02f05990cc9
comparison
equal deleted inserted replaced
13:40f3318b61c2 14:6bbf5cb20652
63 silhouette_score = metrics.silhouette_score(data_matrix,prediction,metric='euclidean') 63 silhouette_score = metrics.silhouette_score(data_matrix,prediction,metric='euclidean')
64 else: 64 else:
65 silhouette_score = -1 65 silhouette_score = -1
66 sys.stdout.write('silhouette score:' + '\t' + str(silhouette_score) + '\n') 66 sys.stdout.write('silhouette score:' + '\t' + str(silhouette_score) + '\n')
67 67
68 prediction_df = pandas.DataFrame(prediction) 68 prediction_df = pandas.DataFrame(prediction, columns=["predicted"])
69 69
70 #if $input_types.selected_input_type == "sparse": 70 #if $input_types.selected_input_type == "sparse":
71 res = prediction_df 71 res = prediction_df
72 #else: 72 #else:
73 res = pandas.concat([data, prediction_df], axis=1) 73 res = pandas.concat([data, prediction_df], axis=1)