Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def set_colors(labels, colors=colors_options):


DataFrame = pd.read_csv('Project2_dataset.csv', header=None)
DataMatrix = DataFrame.as_matrix()
DataMatrix = DataFrame.values

normalized_data_matrix = skp.scale(DataMatrix, axis=0)

Expand Down Expand Up @@ -116,4 +116,4 @@ def set_colors(labels, colors=colors_options):
ax.scatter(*centroid, c='k', s=150, marker='X')
plt.title('Subtractive and K-means clusters')
ax.legend()
plt.show()
plt.show()