Skip to content
Snippets Groups Projects
Commit 1127a7b3 authored by thibault.capt's avatar thibault.capt
Browse files
parents 9265facc b13b618d
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ if __name__ == '__main__': ...@@ -52,7 +52,7 @@ if __name__ == '__main__':
for iteration, centroid in enumerate(centroids): for iteration, centroid in enumerate(centroids):
cluster_points = np.array(clusters[iteration]) cluster_points = np.array(clusters[iteration])
plt.scatter(cluster_points[:, 0], cluster_points[:, 1], label=f"Cluster {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.xlabel("Grade 1")
plt.ylabel("Grade 2") 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