Giter Site home page Giter Site logo

Comments (3)

vadixidav avatar vadixidav commented on July 22, 2024 1

Opened #11 to improve this error message.

from levenberg-marquardt.

vadixidav avatar vadixidav commented on July 22, 2024

Thank you for reporting your issue. You should be able to use LeastSquaresProblem with non-square matrices, which is something we use it for in Rust CV, so if it is having an issue with non-square matrices right now then I will definitely look at that.

Before I do that, I would like you to double check something. Notably, you need to make sure that your residuals have M rows, your params have N rows, and your Jacobian is MxN (rows x colums). Our example in the documentation likely isn't clear on this since it uses a square matrix, so it could be more clear by using a non-square matrix in the documentation.

If you check the above and that all seems correct, let me know, and I can investigate further. If you have a code sample that fails, I would appreciate that as well, but simply verifying for me that those things are true should be helpful. Thanks!

from levenberg-marquardt.

tversteeg avatar tversteeg commented on July 22, 2024

Thanks a lot, the problem was that the residuals I returned was the same size as the parameters. So I had 2 residuals, 2 parameters but a 2x1 Jacobian.

Maybe a message in the form of expected $x residuals but got $y would be better instead of the simple jacobian string that's returned currently?

from levenberg-marquardt.

Related Issues (10)

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.