---
title: "nearest neighbor method"
type: concept
related: [Machine Learning]
source: https://www.jemoka.com/posts/kbhnearest_neighbor_method/
confidence: high
status: active
---

A very simple machine learning method.
For some input \(\qty (\hat{x}, \hat{y})\), find the closest training data point \(\qty (x_{i}, y_{i})\) and return its associated \(z_{i}\), with error \(\mid z_{i} - \hat{z}\mid\). Consider a Voronoi Diagram!
This surface is piecewise constant.
see also nearest neighbor method and data interpolation
