Skip to content

Glossary: Unsupervised Learning

n_neighbors

How many neighbors a method looks at. In UMAP small values focus on fine local detail and large ones on the overall layout; in LOF it is how many nearby rows each order is compared with; in `NearestNeighbors` it is how many rows to return.

Where the book teaches it

Related terms

Local Outlier Factor (LOF)perplexitynearest neighbors