Code Monkey home page Code Monkey logo

weight-optimization-using-evolutionary-algorithms's Introduction

Weight Optimization using Evolutionary Algorithms

This repository contains the Whitebox implementation of Ant Colony Optimization, Cultural Algorithm, Genetic Algorithm, and Particle Swarm Optimization for optimizing neural network weights. These algorithms can be used to train neural networks in a more efficient manner, by finding the optimal values for the weights.

Implemented Algorithms

Ant Colony Optimization
Cultural Algorithm
Genetic Algorithm
Particle Swarm Optimization

Each algorithm has been implemented in a separate Python file, which contains the necessary functions and parameters for running the algorithm.

Neural Network Architecture

The neural network used in this repository has the following architecture:

Input layer: 12 neurons (for 12 features)
Hidden layer: 10 neurons
Output layer: 1 neuron

Accuracy Comparison

Algorithm Test Accuracy
Ant Colony Optimisation 73.39%
Cultural Algorithm 68.75%
Genetic Algorithm 76.5%
Particle Swarm Optimisation 88.54%

Genetic Algorithm

Hidden Layer Size Generations Chromosomes Mating Parents Crossover Rate Mutation Rate Train Accuracy Test Accuracy
7 25 40 10 0.80 0.4 0.7357 0.7396
10 25 40 10 0.80 0.4 0.6745 0.6510
10 30 40 10 0.80 0.4 0.7435 0.7448
10 20 30 10 0.85 0.3 0.8398 0.8490

Inference

Particle Swarm optimisation gave the best results in comparison with the other three evolutionary algorithms

weight-optimization-using-evolutionary-algorithms's People

Contributors

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