Code Monkey home page Code Monkey logo

Comments (3)

keurfonluu avatar keurfonluu commented on May 27, 2024

Hi @ariellellouch,

That's a good idea, I will see what I can do. This seems to require some changes in stochopy, though.

Also, I am not sure if it's just for the example, but 10000 particles sound a bit too much for 39 parameters to invert. Even the conservative rule-of-thumb 10D (so 390 particles) would usually be too much. For 20 layers, 100 particles should be more than enough. If not, I would suggest to better constrain the search with more restrictive search boundaries.

from evodcinv.

keurfonluu avatar keurfonluu commented on May 27, 2024

Hi @ariellellouch,

I finally got some time to work on it. Please update to version 2.1.0: pip install evodcinv -U (that should update stochopy to version 2.3.0 as well, if not, do it manually).

This version adds a new option that allows you to control the verbosity as a fraction of population size (or only return best model for each iteration if set to 0), for instance:

model.configure(
    optimizer="cpso",  # Evolutionary algorithm
    misfit="rmse",  # Misfit function type
    optimizer_args={
        "popsize": 10,  # Population size
        "maxiter": 100,  # Number of iterations
        "workers": -1,  # Number of cores
        "seed": 0,
        "verbosity": 0.0,  # Only return best model for each iteration
    },
)

Hope that works for you!

from evodcinv.

ariellellouch avatar ariellellouch commented on May 27, 2024

Yes, works great (both updating and results)!

from evodcinv.

Related Issues (11)

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.