inst/help/mlClassificationKnn.md

K-Nearest Neighbors Classification

K-nearest neighbors is a method of classification that looks at the k number of feature observations that are most similar to new observations to make a prediction for their class assignments. The number of nearest neighbors is intrinsincly linked to model complexity, as small numbers increase the flexibility of the model.

Assumptions

Input

Assignment Box

Tables

Plots

Data Split Preferences

Holdout Test Data

Training and Validation Data

Training Parameters

Algorithmic Settings

Number of Nearest Neighbors

Add Predicted Classes to Data

Generates a new column in your dataset with the class labels of your classification result. This gives you the option to inspect, classify, or predict the generated class labels.

Output

K-Nearest Neighbors Classification Model Table

Evaluation Metrics

References

R-packages

Example



jasp-stats/jaspMachineLearning documentation built on April 5, 2025, 3:52 p.m.