セクション 3. 章 7
single
Challenge: Implementing K-Means Clustering
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
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.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 7
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください