Code Monkey home page Code Monkey logo

memega's Introduction

GA

Just contains my notes about what I'm doing.

TODO

multi-objective optimization - currently just does weird fitness combinations

Selection strategies

  1. SUS based on fitness
  2. RWS based on fitness
  3. Look for maximally different parent (not implemented)

Survival strategies

  1. Top proportion
  2. Top proportion from each species
  3. Age based replacement (not implemented)
  4. Tournament selection (not implemented)

Crossover strategies

  1. k-point crossover
  2. Uniform crossover
  3. Partially mapped crossover
  4. Edge crossover
  5. Order crossover
  6. Cycle crossover

Mutation strategies

  1. Single replacement - randomly replace a single gene
  • Uniform mutation, non-uniform mutation
  1. Random resetting - randomly reset a state
  2. Swap mutation - randomly swap two genes
  3. Scramble mutation - scramble a substring
  4. Inversion mutation - invert a substring
  5. Creep mutation - add a value to gene; small creep, large creep

Niching

  1. No niching
  2. Shared fitness with species target
  3. Crowding (not implemented) - shared fitness generally better

Fitness evaluation

  1. Stepwise adaption of weights (not implemented)
  • As time goes on, add increasing penalties to particular constraints

Constraint handling

  1. Stepwise Adaption of Weights penalty (not implemented)
  • If best solution violates constraint i, it is a hard constraint so increase the penalty factor.

Measures of performance

  1. Best fitness of last generation
  2. Mean fitness of last generation
  3. Number of duplicate states in last generation
  4. Mean distance between states
  5. Number of species
  6. Number of runs to a solution (not implemented)

Tuning / analysis

  1. Graph of GA progress + mean progress averaged over multiple runs
  2. Statistical and graph comparison of two GAs (not implemented)
  3. ANOVA test - statistical analysis of varying multiple parameters (not implemented)
  4. Two-tailed t-test

Hyper-parameter tuning

  • Meta-GA Multi-objective Optimisations: Sharpening, Racing
  • Adaptive mutation and crossover rates
  • Multiple crossover and mutation methods with adaptively evolved rates

Extra stuff

  1. Local search (not implemented)
  2. Choice between minimisation and maximisation
  • 1/(1 + f(x))

Multiobjective optimisation (not implemented)

Approaches:

  1. Assign fitness based on # members dominated + fitness sharing
  2. Repeatedly take the pareto front and assign fitness based on iteration found
  3. MOEA-D

Example problems

  • Target string evolution
  • Knapsack
  • Ackley function
  • Griewank function
  • Rastrigin function
  • Travelling salesperson (not implemented)
  • Shortest path (not implemented)

Findings

Stochastic Universal Selection vs Roulette Wheel Selection: On 'hello world': RWS:

  • worse #runs avg and distribution to convergence
  • worse mean fitness
  • fewer duplicates

memega's People

Contributors

edgeworth avatar

Watchers

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