在使用 kmeans算法时报错,报错信息如下:
调用方法如下
best_book, best_dist = kmeans(descriptors, numWords, 1)
请问是我调用方法有错么编译环境python2.7
数组的输入维度不正确,要先转换为一维数组再调用。