-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parameters values are not updated #7
Comments
I don't have enough information to go off of. The example https://github.com/Edwinem/ceres_python_bindings/blob/master/examples/ceres_hello_world_analytic_diff.py works on my computer so I would say try to copy that as much as possible. Some potential problems I can think of:
Maybe something like this?
|
I had the same issue with you. I found it is due to initial_x was set as int type. For example |
All internal computations expect "double" data type as input. The author may add some casting into ParseNumpyData. works for me. |
Hi,
I'm having a problem getting the final values of parameters. I defined a custom cost function (PyCeres.CostFunction) and used options.linear_solver_type = PyCeres.LinearSolverType.DENSE_QR, with options = PyCeres.SolverOptions(). I also define an initial_x and parameters = np.array(initial_x). However, once the solver converges, the value of parameters is equal to its initial value. I added a print in the cost function inside the cost function and I could see the different values of parameters evaluated at each iteration.
Is there a way to get the final values of parameters once the problem is solved?
Thanks,
Azza
The text was updated successfully, but these errors were encountered: