Skip to content

Commit

Permalink
Completed Hierarchical Clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
ozlemkorpe committed Aug 10, 2020
1 parent 1dfb7fa commit 034c027
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 81 deletions.
67 changes: 0 additions & 67 deletions Hierarchical_Clustering_Guide.asv

This file was deleted.

24 changes: 10 additions & 14 deletions Hierarchical_Clustering_Guide.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,13 @@


%------- Visualization
% data = arrayed_data;
% figure,
%
% gscatter(data(:,1),data(:,2),idx);
% hold on
%
% for i=1:6
% scatter(C(i,1),C(i,2),96,'black','filled');
% end
%
% legend({'Cluster 1', 'Cluster 2', 'Cluster 3', 'Cluster 4', 'Cluster 5','Cluster 6' })
% xlabel('Annual Income');
% ylabel('Spending Score');
% hold off
data = arrayed_data;
figure,

gscatter(data(:,1),data(:,2),C);
hold on

legend({'Cluster 1', 'Cluster 2', 'Cluster 3', 'Cluster 4', 'Cluster 5' })
xlabel('Annual Income');
ylabel('Spending Score');
hold off

0 comments on commit 034c027

Please sign in to comment.