GithubHelp home page GithubHelp logo

ndyashas / geneticalgorithm Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 109 KB

Genetic Algorithm utility for python

License: MIT License

Python 100.00%
genetic-algorithm genetic-algorithm-framework genetic-algorithms

geneticalgorithm's People

Contributors

ndyashas avatar vaibhav530 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

vaibhav530

geneticalgorithm's Issues

Infinite loop

The code goes into infinite loop when the flag "mutation" is set to 1.
Possibly due to bug in ga2/gaUtil/gaDeamon.mutateAgentObj() funtion.

Storing the objects into files is costing performance

Storing all the variables was helping us to use less of main memory even at high number of agents in a session, but it also hits the performance hard and worsens as the number of epochs go high as ga2 will consume a lot of disk bandwidth + this is unhealthy for disks such as SSDs.

Adding a neural network based action function

GA2 currently is hard to implement and use in an environment where the result vector is dynamic. Direct use of GA2 agent's dna as the result vector will render ga2 useless in this application, thus why not use ga2's agent dna as a structural unit for a general neural network which is used to generate dynamic output vector.

Input : AgentObj.dna , envoironmentStateVector
Output : environmentActrionVector

Description : uses a neural network which is trained by ga2 and is used by environments to get actions once an environment state is sent.

ga2.gaDist.createNextGen() needs to have dynamic arguments

The current implementation of createNextGen uses a lot of underlying daemon functions which have hard coded parameters for heuristics, this should be brought up and centralised at only createNextGen() which has parameter intialisation.

Type of elements in the dna vector.

ga2 will work the best when the dna vector has discrete values rather than floating point numbers.
We can add a flag to set the type of values we want to dna in ga2.gaDisc.Session

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.