Newbie trying to use EvaluationCallback with AutoDiff #1019
-
Hi, I wish to fit a non-linear, parameterised curve f(x; a_1, a_2, a_3, a_4, a_5) to an observed dataset y(x), where a_1...a_5 are parameters to be estimated. As I currently understand (after first reading of the documentation), the best way forward would be similar to ./examples/evaluation_callback_example.cc. ie;
The part I am not quite sure of is; |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Have you tried doing something much simpler, which is having a single residual block per observation and then using multithreading so that ceres can use multiple threads to do the cost and Jacobian computation? |
Beta Was this translation helpful? Give feedback.
-
What do you mean by these approaches being unsuccessful. Can you share the output of Summary::FullReport when you had one residualblock per observation? |
Beta Was this translation helpful? Give feedback.
-
My suggestion to you is (especially since you are new to ceres) is to start by not using the evaluationcallback, and just do one residualblock per observation and enable threading and see what kind of performance you get. I suspect you will get pretty good performance with that and not have to use evaluationcallback. |
Beta Was this translation helpful? Give feedback.
Thanks for sharing the details of your problem. A couple of thoughts:
EvaluationCallback
.