https://github.com/das-amlan/k-nearest-neighbors-using-r
Implementation of the K-Nearest Neighbors (KNN) algorithm in R.
https://github.com/das-amlan/k-nearest-neighbors-using-r
knn-algorithm machine-learning r
Last synced: 10 months ago
JSON representation
Implementation of the K-Nearest Neighbors (KNN) algorithm in R.
- Host: GitHub
- URL: https://github.com/das-amlan/k-nearest-neighbors-using-r
- Owner: das-amlan
- Created: 2021-06-05T18:42:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-03T23:59:29.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T18:05:37.995Z (11 months ago)
- Topics: knn-algorithm, machine-learning, r
- Language: R
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# K-Nearest Neighbors (KNN) Algorithm in R
A simple, supervised machine learning algorithm for solving classification and regression problems, implemented in R.
## Features
* Easy to implement with only two parameters: K and the distance measure.
* Can work with any number of classes.
## Limitations
* Known as a "lazy learner" as it only stores the data in the training phase and does not perform any calculation.
* May not work well with high-dimension data.
## Data
The data used in this implementation is the "Caravan" dataset from the ISLR package. It contains customer data for 6000 customers and 80 features/variables. The target is to predict if the customer purchased insurance or not from Caravan Insurance Company based on the features.