Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Check the Quality | Clustering Demystified
Clustering Demystified
course content

Contenido del Curso

Clustering Demystified

bookCheck the Quality

Now that we have trained our clustering algorithm we have to evaluate its performances to assess the results.

Methods description

  • .labels_: This attribute of the KMeans object contains the cluster labels assigned to each data point after fitting the KMeans algorithm to the data;
  • y == labels: This is a comparison operation that checks element-wise equality between two arrays y and labels, resulting in a boolean array;
  • correct_labels: This variable stores the count of data points that were correctly labeled, i.e., assigned to the correct cluster.

Tarea

  1. Compare the correct_labels with the predicted ones.
  2. Print the results.

Mark tasks as Completed
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Now that we have trained our clustering algorithm we have to evaluate its performances to assess the results.

Methods description

  • .labels_: This attribute of the KMeans object contains the cluster labels assigned to each data point after fitting the KMeans algorithm to the data;
  • y == labels: This is a comparison operation that checks element-wise equality between two arrays y and labels, resulting in a boolean array;
  • correct_labels: This variable stores the count of data points that were correctly labeled, i.e., assigned to the correct cluster.

Tarea

  1. Compare the correct_labels with the predicted ones.
  2. Print the results.

Mark tasks as Completed
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 1. Capítulo 9
AVAILABLE TO ULTIMATE ONLY
some-alt