GithubHelp home page GithubHelp logo

oluwaseunojeleye / 2d-multilayer-perceptron-simulator Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 6.53 MB

This is the implementation of a simulator that classifies 2D data into two classes or multi-classes using a multi-layer perceptron (MLP). It was developed using Visual C++ and it can be used for learning and understanding Artificial Neural Network concepts.

License: MIT License

C++ 99.12% C 0.56% Assembly 0.32%
multilayer-perceptron-network mlp artificial-neural-networks ann

2d-multilayer-perceptron-simulator's Introduction

2D Multilayer Perceptron Simulator

This is the implementation of a simulator that classifies 2D data into two classes or multi-classes using a multi-layer perceptron(MLP). It was developed using Visual C++ and it can be used for learning and understanding Artificial Neural Network concepts.

Table of contents

Multilayer Perceptron

Multi layer perceptron (MLP) is a class of feedforward artificial neural network (ANN) used to solve problems that require supervised learning (For example, classification problems such as XOR problem). It consists of three types of layers—the input layer, output layer and hidden layer, as shown in the figure below. Each layers consist of neurons which connects a layer to another using connections known as weigths and biases.

MLP uses Feed-Forward and Backpropagation for solving supervised learning problems. Feed forward algorithm calculates output data from input data by iteratively using a formula to calculate each neuron in the next layer of the image shown above. Backpropagation is an algorithm used to train (weights and biases) of neural network so that the output data of the network is optimized. When we are training a MLP network, both feed-forward and backpropagation algorithm is used and during the testing phase, only feedforward algorithm is used. MLP neural network was implemented using using matrices and its codes can be found here. This implementation can be run and used independently of the simulator as a C++ user library.

2D Simulator

The simulator is a 2D Cartesian coordinate system that accepts samples (Xi, Yi) of a specified class from a user and simulates either MLP Training or Testing operation using the samples.

Features

Features this implementation supports include:

  • Single and multi-layer perceptron neural network configuration
  • Gradient descent variants
    • Stochastic gradient descent
  • Hidden layer activation functions
    • Sigmoid
    • Bipolar sigmoid
    • Tanh
    • Relu
    • Leaky relu
    • Swish
  • Optimization algorithm
    • Momentum
  • Preprocessing operations
    • Batch Normalization
  • Output layer activation functions
    • Sigmoid
    • Bipolar sigmoid
    • Tanh
    • Relu
    • Leaky relu
    • Swish
  • Loss functions
    • Quadratic/L2 loss function
  • Loading and saving of samples and network

Problems

Example of problems solved with the simulator are:

1. XOR Problem

2. Circular Data

3. Spiral Data

Author

  • Jamiu Oluwaseun Ojeleye

2d-multilayer-perceptron-simulator's People

Contributors

oluwaseunojeleye avatar

Stargazers

 avatar  avatar  avatar  avatar

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.