Learn Before
Concept

Distance Function

In nonparametric methods like the kk-nearest neighbor algorithm, a distance function, denoted as dd, must be specified to measure the similarity between data points. Equivalently, this involves defining a vector-valued basis function ϕ(x)\phi(\mathbf{x}) for featurizing the data. The choice of distance metric is critical because it encodes different inductive biases and represents specific assumptions about the underlying data patterns. With a finite amount of available data, different distance functions will yield different predictors depending on how compatible these assumptions are with the observed data.

0

1

Updated 2026-05-06

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L