What is the tradeoff of tuning the leaf size parameter in KD-trees and ball trees?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how the leaf size parameter of KD-trees and ball trees affects nearest-neighbor search. Tests whether you can weigh build time, memory and traversal overhead against brute-force work inside leaves, and explain how to pick a value for a given dataset.