- Type Parameters:
O- the type of objects handled by this algorithm
@Title("KNNWeight outlier detection") @Description("Outlier detection based on the sum of distances of an object to its k nearest neighbors.") @Reference(authors="F. Angiulli, C. Pizzuti", title="Fast Outlier Detection in High Dimensional Spaces", booktitle="Proc. European Conf. Principles of Knowledge Discovery and Data Mining (PKDD\'02)", url="https://doi.org/10.1007/3-540-45681-3_2", bibkey="DBLP:conf/pkdd/AngiulliP02") @Alias("knnw") public class KNNWeightOutlier<O> extends java.lang.Object implements OutlierAlgorithmOutlier Detection based on the accumulated distances of a point to its k nearest neighbors.
As in the original publication (as far as we could tell from the pseudocode included), the current point is not included in the nearest neighbors (see figures in the publication). This matches the intuition common in nearest neighbor classification, where the evaluated instances are not part of the training set; but it contrasts to the pseudocode of the kNN outlier method and the database interpretation (which returns all objects stored in the database).
Furthermore, we report the sum of the k distances (called "weight" in the original publication). Other implementations may return the average distance instead, and therefore yield different results.
F. Angiulli, C. Pizzuti
Fast Outlier Detection in High Dimensional Spaces
Proc. European Conf. Principles of Knowledge Discovery and Data Mining (PKDD'02)
- Lisa Reichert
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getInputTypeRestriction()Get the input type restriction used for negotiating the data query.
run(Relation<O> relation)Runs the algorithm in the timed evaluation part.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TypeInformation getInputTypeRestriction()Description copied from interface:
AlgorithmGet the input type restriction used for negotiating the data query.