python实现矩阵中某一列特定对象行的提取

ptsInCurrCluster = dateSet[np.nonzero(clusterAssment[:,0].A == i)[0],:] 提取clusterAssment矩阵中第一列等于i的全部行。python
相关文章
相关标签/搜索