Using Enriched Category Theory to Construct the Nearest Neighbour Classification Algorithm

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Pugh, Matthew, Grundy, Jo, Cirstea, Corina, Harris, Nick
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929687148625920
author Pugh, Matthew
Grundy, Jo
Cirstea, Corina
Harris, Nick
author_facet Pugh, Matthew
Grundy, Jo
Cirstea, Corina
Harris, Nick
contents This paper is the first to construct and motivate a Machine Learning algorithm solely with Enriched Category Theory, supplementing evidence that Category Theory can provide valuable insights into the construction and explainability of Machine Learning algorithms. It is shown that a series of reasonable assumptions about a dataset lead to the construction of the Nearest Neighbours Algorithm. This construction is produced as an extension of the original dataset using profunctors in the category of Lawvere metric spaces, leading to a definition of an Enriched Nearest Neighbours Algorithm, which, consequently, also produces an enriched form of the Voronoi diagram. Further investigation of the generalisations this construction induces demonstrates how the $k$ Nearest Neighbours Algorithm may also be produced. Moreover, how the new construction allows metrics on the classification labels to inform the outputs of the Enriched Nearest Neighbour Algorithm: Enabling soft classification boundaries and dependent classifications. This paper is intended to be accessible without any knowledge of Category Theory.
format Preprint
id arxiv_https___arxiv_org_abs_2312_16529
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Using Enriched Category Theory to Construct the Nearest Neighbour Classification Algorithm
Pugh, Matthew
Grundy, Jo
Cirstea, Corina
Harris, Nick
Machine Learning
Category Theory
This paper is the first to construct and motivate a Machine Learning algorithm solely with Enriched Category Theory, supplementing evidence that Category Theory can provide valuable insights into the construction and explainability of Machine Learning algorithms. It is shown that a series of reasonable assumptions about a dataset lead to the construction of the Nearest Neighbours Algorithm. This construction is produced as an extension of the original dataset using profunctors in the category of Lawvere metric spaces, leading to a definition of an Enriched Nearest Neighbours Algorithm, which, consequently, also produces an enriched form of the Voronoi diagram. Further investigation of the generalisations this construction induces demonstrates how the $k$ Nearest Neighbours Algorithm may also be produced. Moreover, how the new construction allows metrics on the classification labels to inform the outputs of the Enriched Nearest Neighbour Algorithm: Enabling soft classification boundaries and dependent classifications. This paper is intended to be accessible without any knowledge of Category Theory.
title Using Enriched Category Theory to Construct the Nearest Neighbour Classification Algorithm
topic Machine Learning
Category Theory
url https://arxiv.org/abs/2312.16529