What is a Tomek link?

Quick Overview

Asks what a Tomek link is in a labeled dataset, what a link says about the two samples in it, and how removing links is used for undersampling and data cleaning on imbalanced classes. Tests nearest-neighbor reasoning and practical resampling judgment.

What is a Tomek link?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is a Tomek link? The term comes up alongside resampling methods for imbalanced classification. Explain what one is and what it tells you about the data. ```hint Where to look Think about nearest-neighbor relations between samples that carry different labels, and what such a relation says about where those samples sit. ``` ### What a Strong Answer Covers - The precise definition in terms of distances and class labels - What a link says about the two samples involved (boundary points, noise or mislabeling) - How links are used for undersampling or cleaning, and which member gets removed - Limitations: how many samples it removes and its dependence on the distance metric and feature scaling ### Follow-up Questions - How would you combine Tomek link removal with SMOTE, and in which order? - How does Tomek link removal differ from Edited Nearest Neighbours? - What does it cost to find every Tomek link in a large dataset, and how would you make it cheaper? - Why should the cleaning step touch only the training split?

Overview: Asks what a Tomek link is in a labeled dataset, what a link says about the two samples in it, and how removing links is used for undersampling and data cleaning on imbalanced classes. Tests nearest-neighbor reasoning and practical resampling judgment.

General logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is a Tomek link?

The term comes up alongside resampling methods for imbalanced classification. Explain what one is and what it tells you about the data.

What a Strong Answer Covers Guidance

  • The precise definition in terms of distances and class labels
  • What a link says about the two samples involved (boundary points, noise or mislabeling)
  • How links are used for undersampling or cleaning, and which member gets removed
  • Limitations: how many samples it removes and its dependence on the distance metric and feature scaling

Follow-up Questions Guidance

  • How would you combine Tomek link removal with SMOTE, and in which order?
  • How does Tomek link removal differ from Edited Nearest Neighbours?
  • What does it cost to find every Tomek link in a large dataset, and how would you make it cheaper?
  • Why should the cleaning step touch only the training split?