How does NearMiss-1 select which majority-class samples to retain?

Quick Overview

Asks how the NearMiss-1 undersampling method chooses which majority-class samples to keep in an imbalanced dataset. Tests knowledge of its distance rule, the target class ratio, its sensitivity to noise and how it differs from NearMiss-2 and NearMiss-3.

How does NearMiss-1 select which majority-class samples to retain?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

NearMiss is a family of distance-based undersampling methods for imbalanced classification. How does `NearMiss-1` select which majority-class samples to retain? ```hint Follow the distances For each majority sample, ask which class's points it is measured against, how many of them, and whether the method keeps the samples with small or large values. ``` ### What a Strong Answer Covers - The distance NearMiss-1 computes for each majority sample, and which neighbors it uses - Which samples are kept, and how the target class ratio decides how many - Why the kept points sit near the class boundary, and what noise and minority outliers do to the result - How NearMiss-1 differs from NearMiss-2 and NearMiss-3 - Practical setup: feature scaling and the neighbor count ### Follow-up Questions - When would you choose random undersampling or Tomek links over NearMiss-1? - After training on NearMiss-undersampled data, how do you get probabilities that match the true class ratio? - What does NearMiss-1 cost on a dataset with tens of millions of majority rows, and how would you make it cheaper?

Overview: Asks how the NearMiss-1 undersampling method chooses which majority-class samples to keep in an imbalanced dataset. Tests knowledge of its distance rule, the target class ratio, its sensitivity to noise and how it differs from NearMiss-2 and NearMiss-3.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

NearMiss is a family of distance-based undersampling methods for imbalanced classification. How does NearMiss-1 select which majority-class samples to retain?

What a Strong Answer Covers Guidance

  • The distance NearMiss-1 computes for each majority sample, and which neighbors it uses
  • Which samples are kept, and how the target class ratio decides how many
  • Why the kept points sit near the class boundary, and what noise and minority outliers do to the result
  • How NearMiss-1 differs from NearMiss-2 and NearMiss-3
  • Practical setup: feature scaling and the neighbor count

Follow-up Questions Guidance

  • When would you choose random undersampling or Tomek links over NearMiss-1?
  • After training on NearMiss-undersampled data, how do you get probabilities that match the true class ratio?
  • What does NearMiss-1 cost on a dataset with tens of millions of majority rows, and how would you make it cheaper?