Giter Site home page Giter Site logo

optimization's People

Contributors

igorcantele avatar helveg avatar

Watchers

 avatar

optimization's Issues

Don't know how to integrate BMG with DEAP

toolbox.register("attr_bool", random.randint, 0, 1)
# Structure initializers
toolbox.register("individual", tools.initRepeat, creator.Individual,
toolbox.attr_bool, 100)
toolbox.register("population", tools.initRepeat, list, toolbox.individual)

@Helveg

The example generates from random.randint a list of 100 bools and is optimized to generate empty list.
Individuals are the numbers to be optimized (the error of the BMG activity), while the population is the group of the individuals.

Two main problems:

  • Here attr_bool is the random function we are using to fill the 100-lengthy list that will be our population. How to transform it in the double input of the function? I guess we can generate a np.random.random(2) and transform the free params in 0-1 values.
  • I couldn't find any way to return the input of the function, I can only return the best Individual. I couldn't make an individual a dict, I guess I can make the first element of the Individual the pair of free params and the others the errors to sum up.

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.