Giter Site home page Giter Site logo

levenberg-marquardt's Introduction

levenberg-marquardt

Discord Crates.io MIT/Apache docs.rs LoC Tests Lints no_std

Provides abstractions to run Levenberg-Marquardt optimization

To add it, install cargo-edit (cargo install cargo-edit) and run cargo add levenberg-marquardt.

Usage (see the docs for more detailed information):

levenberg_marquardt::optimize(
    // The max number of iterations before terminating
    50,
    // The max number of times it can fail to find a better solution in a row before terminating.
    10,
    // A lambda parameter of `0.0` is Gauss-Newton and a high lambda is gradient descent.
    50.0,
    // If lambda * lambda_converge performs better than the current lambda, that solution is used.
    0.8,
    // If lambda and lambda * lambda_converge fail to find a better solution, lambda is multiplied by this.
    2.0,
    // If the average of residuals squared falls below this value, the algorithm terminates.
    0.0,
    // The initial model.
    initial_model,
    |v| // Normalize your model here if it can become degenerate (rotations, normal vectors).,
    |v| // Compute your residuals here. Multiply these by a constant to scale the speed of convergence.,
    |v| // Compute the Jacobian for each column of the residual matrix here.,
)

levenberg-marquardt's People

Contributors

jannschu avatar vadixidav 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.