阅读背景:

内存错误Numpy / Python欧几里德距离

来源:互联网 

I'm trying to run a K-Means Clustering algorithm with numpy and python, but keep running into a memory error if I use larger values of K (anything greater than 10 seems to result in the error). I have two numpy arrays of size [42000,784] (the dataset) and [K,784] (the centroids). The memory error occurs when calculating the euclidean distance between each of the centroids and each of the data points. This is the function I have been using:I'm trying to run a K-Means Clustering algorith




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: