KNN算法 Resources

Showing items tagged with "KNN算法"

Implementation of KNN algorithm for 0-9 handwritten digit classification achieving over 90% accuracy, featuring separate training (7291 samples) and testing (2791 samples) datasets. The MATLAB-based solution includes comprehensive documentation with clear code structure and algorithm explanations.

MATLAB 293 views Tagged

The K-Nearest Neighbors (KNN) algorithm can be utilized for both classification and regression tasks. By identifying k nearest neighbors of a sample and assigning the average of their attributes to that sample, we can predict the sample's properties. A more sophisticated approach involves assigning different weights to neighbors based on their distance, such as making weights proportional to distance, which improves prediction accuracy through weighted averaging.

MATLAB 324 views Tagged