幽门
Python局部异常因子算法的Python实现。
例子
例子1
以下示例说明了基于instances变量计算几个实例(例如[0,0],[5,5],[10,10] and [-8,-8] )的LOF值的简单用例。传递给LOF构造函数。
instances = [
(-4.8447532242074978, -5.6869538132901658),
(1.7265577109364076, -2.5446963280374302),
(-1.9885982441038819, 1.705719643962865),
(-1.999050026772494, -4.0367551415711844),
(-2.0550860126898964, -3.6247409893236426),
(-1.4456945632547327, -3.7669258809535102
1