Skip to content

Implementation of K-Nearest Neighbors from scratch using Pytorch

Notifications You must be signed in to change notification settings

ConsciousML/KNN-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

K-Nearest-Neighbors-From-Scratch

Objective

The goal of this project is to understand how K-nearest neigbhors works.
The experiment is implemented using PyTorch.

Blog Post

The post of this experiment can be found following this link.

Wine Quality Dataset

The K-nearest neighbors is trained on physicochemical data to predict the quality of a red or white wines.
This dataset contains 6497 samples and the following features:

  • fixed acidity
  • volatile acidity
  • citric acid
  • residual sugar
  • chlorides
  • free sulfur dioxide
  • total sulfur dioxide
  • density
  • pH
  • sulphates
  • alcohol
  • quality

Setup

In order to install the conda environment needed to run the notebook, run the following line:

conda env create --file requirements.yml
conda activate torch

About

Implementation of K-Nearest Neighbors from scratch using Pytorch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published