Git Product home page Git Product logo

neural-networks's Introduction

PV021 Neural networks project

Simple feedforward neural network trained by SGD, backpropagation and mean square error.

Authors

Usage

$ ./RUN

Outputs

  • trainPredictions - predicted labels for train vectors (train + eval)
  • actualTestPredictions - predicted labels fot test vectors

Makefile

src/Makefile

Debug

  • Enables debug prints
$ make debug
$ ./network
==Start==

==Training data loading: Start==
File opened: ../MNIST_DATA/mnist_train_vectors.csv
File opened: ../MNIST_DATA/mnist_train_labels.csv
==Training data loading: End (1.00s)==

==Network initialization: Start==
==Network initialization: End (0.02s)==

==Training: Start==
2 epochs, 0.200 training rate, 32 batch size
Training data shape: (48000, 785)
Training labels shape: (48000, 10)
Eval data shape: (12000, 785)
Eval labels shape: (12000, 10)
Epoch 1: 100%
  Time: 76.25s
  Eval accuracy: 94.17%
Epoch 2: 100%
  Time: 76.17s
  Eval accuracy: 95.88%
==Training: End==

==Predicting training data: Start ==
Test data accuracy 96.48%
==Predicting training data: End (37.96s)==

==Predicting testing data: Start ==
File opened: ../MNIST_DATA/mnist_test_vectors.csv
File opened: ../MNIST_DATA/mnist_test_labels.csv
Test data accuracy 96.20%
==Predicting testing data: End (6.51s)==

==Total time 212.80s==

Test

  • Compiles and runs unit tests
  • CuTest website
  • Licence can be found in src/tests/license.txt file
$ make test
./test
............

OK (12 tests)

Profile

  • profiling using gprof
$ make profile
$ ./network
$ gprof ./network

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.