Skip to content

Methods · Machine learning · Metric learning

Information-Theoretic Metric Learning (ITML)

Information-theoretic metric learning finds a Mahalanobis distance that keeps same-class pairs within an upper bound and different-class pairs beyond a lower bound, while staying as close as possible to the ordinary distance in the sense of the LogDet divergence. It is solved by projecting onto one pairwise constraint at a time, with slack that allows some constraints to be missed.

정보이론적 거리 학습은 같은 범주 쌍의 거리는 상한 안에, 다른 범주 쌍의 거리는 하한 밖에 두면서 LogDet 발산으로 잰 원래 거리와의 차이를 가장 작게 하는 마할라노비스 거리를 찾습니다. 쌍별 제약에 하나씩 사영하는 방식으로 풀며, 여유 변수를 두어 일부 제약은 어길 수 있게 합니다.

Can I learn a distance between cases that brings same-class cases together and pushes different classes apart, to improve nearest-neighbour methods?

같은 범주끼리는 가깝게, 다른 범주끼리는 멀게 만드는 거리를 학습해 최근접 이웃 방법을 개선할 수 있습니까?

The method reports the learned distance matrix, how many constraints hold before and after learning, the divergence from the ordinary distance, and k-nearest-neighbour accuracy with and without the learned distance.

When to use Information-Theoretic Metric Learning (ITML)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

ITML learned a Mahalanobis metric from [value] class-based distance constraints; leave-one-out [value]-NN accuracy changed from [value] (Euclidean) to [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with SciPy at a stated tolerance of 1e-5.

    독립 계산. SciPy 대조 참조 시험 1건 통과(허용오차 1e-5).

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Information-Theoretic Metric Learning (ITML) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and predictor (feature) columns
Price
600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q71102 · Reviewed 2026-10-25