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道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!