Comments (3)
Opened #11 to improve this error message.
from levenberg-marquardt.
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.
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)
- Remarks regarding optimize interface HOT 2
- Add a message explaining incorrect Jacobian shape error
- Configuration questions HOT 5
- Support for nalgebra::Dyn storage HOT 1
- Feature request: Returning covariance matrix and parameter error
- Convergence criteria HOT 1
- Return statistics
- Suggestions for improving the API HOT 14
- Tracking issue: Porting the MINPACK implementation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from levenberg-marquardt.