Seção 1. Capítulo 16
single
Challenge: Implementing K-Means Clustering
Deslize para mostrar o menu
Tarefa
Deslize para começar a programar
You are given a synthetic dataset stored in the data variable.
- Initialize a K-means model with
3clusters, setrandom_stateto42,n_initto'auto'and store it in thekmeansvariable. - Fit the model on the dataset, predict the cluster labels, and store the result in the
labelsvariable. - For each cluster
i, extract the points belonging to this cluster and store the result in thecluster_pointsvariable.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 16
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo