Giter Club home page Giter Club logo

neuralnetworkparallelimplementation's Introduction

Report

  • Number of hidden layers = 1, number of neurons in hidden layer = 10.
  • Tested for number of epochs = 100, batch size = 10, training sample size = 6000
  • Here I limited to 100 epochs since the around 200 the process was killed (probably due to memory shortage).
  • alpha used is :: 0.1
  • Optimum Batch size came out to be 10
  • The mininum epoch achieved was :: 0.0008333333

Serial Code

  • The serial code is neural_net.c
  • Time Taken :: 120.14 sec
  • Accuracy :: 75 percent
  • Grind rate :: 4994.17

Parallel Code

  • The parallel code is neural_net_omp.c

  • Time Taken :: 30.8 sec

  • Accuracy :: 66 percent

  • Grind rate :: 19480.106

  • Since the major calculation portion was the matrix multiplications and other operations I parallelised all the matrix operations.

  • Apart from that I parallelised on places where I am looping through all the layers and not sharing resources for every input.

  • It was not possible according to my architecture to parallelize for m for loop since for that every input will have to have separate layer_a(activation layer array), layer_z(Z of layers) etc.

  • The speed increased but the accuracy dropped I beleive its due to some race conditions while paralleslising which I could not debug.

neuralnetworkparallelimplementation's People

Watchers

 avatar  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.