MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / k_nearest_neighbours.py

File k_nearest_neighbours.py

machine_learning/k_nearest_neighbours.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2k-Nearest Neighbours (kNN) is a simple non-parametric supervised learning
3algorithm used for classification. Given some labelled training data, a given
4point is classified using its k nearest neighbours according to some distance

Callers

nothing calls this directly

Calls 2

KNNClass · 0.85
classifyMethod · 0.80

Tested by

no test coverage detected