Skip to content
Snippets Groups Projects
Commit b13b618d authored by juliano.souzaluz's avatar juliano.souzaluz
Browse files

Update main.py

parent d8a6187a
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ if __name__ == '__main__':
for iteration, centroid in enumerate(centroids):
cluster_points = np.array(clusters[iteration])
plt.scatter(cluster_points[:, 0], cluster_points[:, 1], label=f"Cluster {iteration}")
plt.scatter(centroid[0], centroid[1], marker="x", s=200, c="red", label=f"Centroïde {iteration + 1}")
plt.scatter(centroid[0], centroid[1], marker="+", s=200, c="red", label=f"Centroïde {iteration + 1}")
plt.xlabel("Grade 1")
plt.ylabel("Grade 2")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment