Skip to content
Snippets Groups Projects
Commit 50a5993e authored by s183917's avatar s183917 :speech_balloon:
Browse files

togehttt

parent f8b8c201
Branches
No related tags found
No related merge requests found
...@@ -140,9 +140,10 @@ def clustering3(X, y, optimal_K ): ...@@ -140,9 +140,10 @@ def clustering3(X, y, optimal_K ):
hie_rand, hie_jaccard, hie_NMI = clusterval(y, hierchical_clusterings) hie_rand, hie_jaccard, hie_NMI = clusterval(y, hierchical_clusterings)
gmm_rand, gmm_jaccard, gmm_NMI = clusterval(y, gmm_clusterings) gmm_rand, gmm_jaccard, gmm_NMI = clusterval(y, gmm_clusterings)
tog_rand, tog_jaccard, tog_NMI = clusterval(hierchical_clusterings, gmm_clusterings )
print(f"Hierachical:\n\tRand: {hie_rand}\n\tJaccard: {hie_jaccard}\n\tNMI: {hie_NMI}") print(f"Hierachical:\n\tRand: {hie_rand}\n\tJaccard: {hie_jaccard}\n\tNMI: {hie_NMI}")
print(f"GMM:\n\tRand: {gmm_rand}\n\tJaccard: {gmm_jaccard}\n\tNMI: {gmm_NMI}") print(f"GMM:\n\tRand: {gmm_rand}\n\tJaccard: {gmm_jaccard}\n\tNMI: {gmm_NMI}")
print(f"TOGETHI:\n\tRAND BOI:{tog_rand}\n\t Jaccard_boi: {tog_jaccard}\n\t NMI: {tog_NMI}")
def outlier1(X, songnames): def outlier1(X, songnames):
kde = gaussian_kde(X.T) kde = gaussian_kde(X.T)
...@@ -214,9 +215,9 @@ if __name__ == "__main__": ...@@ -214,9 +215,9 @@ if __name__ == "__main__":
#clusters = clustering1(X) #clusters = clustering1(X)
# clustering2(X) # clustering2(X)
#clustering2enhalv(X, y, 9) #clustering2enhalv(X, y, 9)
# clustering3(X, y, 9) clustering3(X, y, 9)
#song_names = list(song_names) #song_names = list(song_names)
outlier1(X, song_names) #utlier1(X, song_names)
# X, attributeNames, song_names = load_data_binarized(3) # X, attributeNames, song_names = load_data_binarized(3)
# association_mining1(X, attributeNames) # association_mining1(X, attributeNames)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment