GithubHelp home page GithubHelp logo

vikasnataraja / k-nearest-neighbors-for-mnist-digit-classification Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 57 KB

This project explores the use of KNN algorithm to classify a database of handwritten digits. The algorithm does not use scikit-learn's built in KNNClassifier but instead a custom version that I have built.

Jupyter Notebook 100.00%

k-nearest-neighbors-for-mnist-digit-classification's Introduction

K-Nearest Neighbors for Digit Classification

This project explores the use of KNN algorithm to classify a database of handwritten digits. The algorithm does not use scikit-learn's built in KNNClassifier but instead a custom version that I have built.

Getting Started

  • This classifier uses helper functions like getCounts, majority, classify instead of the actual classifier.
  • While the program does use scikit-learn for some parts, the main classifier is fully custom-built.

Prerequisites

  • GitBash or any other shell
  • Python
  • Libraries including scikit-learn

To give you an example, I used GitBash for my shell and Python installed as well as Anaconda distribution (because it comes with most libraries or can be installed easily).

Installing and running the code

  • To run the program, open KNN_Classifier.ipynb. This being a Jupyter notebook file, you can easily run the program on your local machine.
  • Clone the repo to your local machine.
  • Use GitBash or any other shell and navigate to the directory.
  • Once in the directory, type jupyter notebook and you will be navigated to a browser window with the code.
  • Once you see the code, feel free to implement the code, edit or anything else you might want to do.

Acknowledgements

A huge thank you to: Professor David Quigley at CU Boulder and stackoverflow for answering all my stupid questions

k-nearest-neighbors-for-mnist-digit-classification's People

Contributors

vikasnataraja avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.