Giter VIP home page Giter VIP logo

neuralnetworks's Introduction

NeuralNetworks

This project implements different classiffcation methods and compare its performance in classifying handwritten digits. The following objectives are met:

� How Neural Network works and use Feed Forward, Back Propagation to implement Neural Network

� How K-Nearest Neighbors can be used for classi cation task

The dataset for handwritten digits is taken from http://www.cs.nyu.edu/~roweis/data.html The MNIST dataset consists of a training set of 60000 examples and test set of 10000 examples. All digits have been size-normalized and centered in a xed image of 28�28 size. In original dataset, each pixel in the image is represented by an integer between 0 and 255, where 0 is black, 255 is white and anything between represents different shade of gray.

� preprocess.m: performs some preprocess tasks, and outputs the preprocessed train, validation and test data with their corresponding labels (1 of k encoding scheme for error calculation)

� script.m: Main Matlab script that calls other functions (Neural network implementation and KNN)

� sigmoid.m: Calculates sigmoid

� nnObjFucntion.m: computes the error function of Neural Network.

� nnPredict.m: predicts the label of data given the parameters of Neural Network.

� initializeWeights.m: return the random weights for Neural Network given the number of node in the input layer and output layer.

� fmincg.m: perform optimization task by using conjugate gradient descent (Used as is)

� knnPredict.m: knnPredict predicts the label of given data by using k-nearest neighbor classi cation algorithm.

neuralnetworks's People

Watchers

 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.