Зміст курсу
Clustering Demystified
Check 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 theKMeans
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 arraysy
andlabels
, 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.
Завдання
- Compare the
correct_labels
with the predicted ones. - Print the results.
Mark tasks as Completed
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?
Дякуємо за ваш відгук!
Now that we have trained our clustering algorithm we have to evaluate its performances to assess the results.
Methods description
.labels_
: This attribute of theKMeans
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 arraysy
andlabels
, 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.
Завдання
- Compare the
correct_labels
with the predicted ones. - Print the results.
Mark tasks as Completed
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 1. Розділ 9
AVAILABLE TO ULTIMATE ONLY