Distance approximation using Isolation Forests

David Cortes
10/27/2019
stat.MLcs.LG

Official code: david-cortes/isotree (232 stars, C++, BSD-2-Clause, last commit 2026-06-21).

Abstract

This work briefly explores the possibility of approximating spatial distance (alternatively, similarity) between data points using the Isolation Forest method envisioned for outlier detection. The logic is similar to that of isolation: the more similar or closer two points are, the more random splits it will take to separate them.

Show full abstract

The separation depth between two points can be standardized in the same way as the isolation depth, transforming it into a distance metric that is limited in range, centered, and in compliance with the axioms of distance. This metric presents some desirable properties such as being invariant to the scales of variables or being able to account for non-linear relationships between variables, which other metrics such as Euclidean or Mahalanobis distance do not. Extensions to the Isolation Forest method are also proposed for handling categorical variables and missing values, resulting in a more generalizable and robust metric.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

(Python, R, C/C++) Isolation Forest and variations such as SCiForest and EIF, with some additions (outlier detection + similarity + NA imputation)

23240C++, PythonOct 23, 20195 months agoBSD-2-Clause
anomaly-detectionimputationisolation-forestoutlier-detection

Similar Papers

Cite this paper

@article{cortes2019distance,
  title  = {Distance approximation using Isolation Forests},
  author = {David Cortes},
  year   = {2019},
  eprint = {1910.12362},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.12362}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.12362.svg)](https://codeofpaper.com/paper/1910.12362)

Discussion