Q34. A student writes: kmeans = KMeans(n_clusters=3) df["cluster"] = kmeans.fit(X) What is the issue?单项选择题
A
KMeans cannot be used with DataFrames
B
.fit() does not return cluster labels; use .fit_predict() or .labels_
C
The number of clusters must be 2
D
The DataFrame must be sorted first
E
The model must be saved before fitting
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
The goal of clustering a set of data is to:
Which of the following statements about clustering in machine learning is true?
Your team experiments with increasing K in K-Means from 3 to 8. What is the expected effect?
In k-means clustering, what is the primary goal of the algorithm? (you can choose more than one)
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!