← all blocks
model-head · v1.0.0

KNN Classifier

Browser-only k-nearest-neighbors classifier. Stores the training set, predicts via majority vote of the k closest rows. Useful when the decision surface is local and non-linear.

Contract

Input:
Frame
Output:
ModelArtifact
Determinism:
seeded
Side effects:
trains-artifact
Leakage window:
0s

Params (live form)

JSON
{}
Try in builder