\(\DeclarePairedDelimiterX{\Set}[2]{\{}{\}}{#1 \nonscript\;\delimsize\vert\nonscript\; #2}\) \( \DeclarePairedDelimiter{\set}{\{}{\}}\) \( \DeclarePairedDelimiter{\parens}{\left(}{\right)}\) \(\DeclarePairedDelimiterX{\innerproduct}[1]{\langle}{\rangle}{#1}\) \(\newcommand{\ip}[1]{\innerproduct{#1}}\) \(\newcommand{\bmat}[1]{\left[\hspace{2.0pt}\begin{matrix}#1\end{matrix}\hspace{2.0pt}\right]}\) \(\newcommand{\barray}[1]{\left[\hspace{2.0pt}\begin{matrix}#1\end{matrix}\hspace{2.0pt}\right]}\) \(\newcommand{\mat}[1]{\begin{matrix}#1\end{matrix}}\) \(\newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}}\) \(\newcommand{\mathword}[1]{\mathop{\textup{#1}}}\)
Needs:
Predictors
Metrics
Needed by:
None.
Links:
Sheet PDF
Graph PDF

Nearest Neighbor Predictors

Why

We might expect similar precepts to lead to similar postcepts.

Definition

Consider a set of inputs $X$ with a metric $d: X \times X \to \R $ Let $D = (x^1, y^1), \dots , (x^n, y^n)$ a dataset in $X \times Y$ The nearest-neighbor predictor is the predictor $f: X \to Y$ which assigns to $x \in X$ the value ...

Notation

Let $D = ((a^1, b^1), \dots , (a^n, b^n))$ be a dataset in $A \times B$, where $A$ and $B$ are non-empty sets. Let $f$ be the nearest neighbor inductor. Then $\iota (D)(x)$ is Let $n$ be a natural number. Let $\Xi $ be a length $n$ paired record sequence in $\mathcal{U} \times \mathcal{V} $; so

\[ \Xi = ((u^1, v^1), \dots , (u^n, v^n)) \]

with $u^i \in \mathcal{U} $ and $v^i \in \mathcal{V} $ for $i = 1,\dots ,n$.

The nearest neighbor induction associates $\Xi $ with the function $f_{\Xi }$ such that

\[ f_{\Xi }(u) = v^j \]

where $j < n$ is the largest integer such that

\[ d(u, u^j) = \min_{i} \set{d(u, u^i)}. \]

\blankpage

Copyright © 2023 The Bourbaki Authors — All rights reserved — Version 13a6779cc About Show the old page view