阅读背景:

使用k-means算法检测离群值

来源:互联网 

I am hoping you can help me with my problem. I am trying to detect outliers with use of the kmeans algorithm. First I perform the algorithm and choose those objects as possible outliers which have a big distance to their cluster center. Instead of using the absolute distance I want to use the relative distance, i.e. the ration of absolute distance of the object to the cluster center and the average distance of all objects of the cluster to their cluster center. The code for outlier detection based on absolute distance is the following:I am hoping you can help me with my problem. I




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

分享到: