Skip to main content
Thanks for the feedback!
Explore interactive demos

KNN Hyperparameters

Search for the nearest-neighbor settings that classify data best.

KNN Hyperparameters
Tune the neighbor count so the nearest points vote for the right class.
Input
xi
Neighbors
k nearest vote
Predicted
class A
Each chromosome encodes (n_neighbors, leaf_size); fitness = accuracy.
Run this yourself, for free

Sign in to configure and launch a genetic algorithm against this problem, or bring your own.

Get started