Coder Social home page Coder Social logo

abdillahi-a / comparing-different-neural-network-architectures Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 84 KB

A systematic examination of the effects of hyperparameter modifications on 3 different neural networks architectures

Jupyter Notebook 100.00%

comparing-different-neural-network-architectures's Introduction

Comparing-Different-Hyperparameters-Neural-Network-Architectures

Goal

This project explores three neural network architectures:

  1. single layer perceptron
  2. multilayer perceptron and;
  3. convolutional neural network.

It does so by altering a number of hyper-parameters in each network and comparing the impact of these alterations to the various networks’ performance in recognizing handwritten digits provided by the MNIST dataset.

Result

Of all three neural network architectures, CNN had the highest performance in recognising handwritten digits from the MNIST dataset with a test accuracy of 98.13%. This was followed by the MLP architecture with model_5c achieving a test accuracy of 96.74%. The lowest performer was the SLP with model_1c achieving a test accuracy of 92.36%. In terms of hyperparameters, learning rate seemed to be the most sensitive hyperparameter, with minor adjustments in either direction of 0.001 leading to drops of up to 77% in accuracy. Choice of activation had the 2nd biggest effect on model performance, with switching from sigmoid to relu resulting in an increase of 2.7% in test accuracy. The next most influential hyperparameter was batch size, which was negatively correlated with accuracy such that an increase in batch size from 128 to 512 resulted in a 0.93% reduction in test accuracy. Number of hidden layers in the network was positively correlated with performance such that more hidden layers increased test accuracy, however, this relationship occurred at a decreasing rate, suggesting that increasing layers beyond a certain point may not yield much in terms of improved accuracy. Number of epochs were positively correlated with performance, however a few models had issues with overfitting with particularly high epochs. Interestingly, relu and tanh would begin to overfit at much sooner epochs than sigmoid. Number of nodes seemed to have a small, albeit negative correlation with performance, such that an increase from 32 nodes to 128 nodes saw a 0.39% decrease in test accuracy.

comparing-different-neural-network-architectures's People

Contributors

abdillahi-a avatar

Watchers

James Cloos 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.