Skip to content
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

find_MAP does nothing? #23

Open
Gabriel-p opened this issue Jul 30, 2018 · 0 comments
Open

find_MAP does nothing? #23

Gabriel-p opened this issue Jul 30, 2018 · 0 comments

Comments

@Gabriel-p
Copy link

Gabriel-p commented Jul 30, 2018

I'm testing the find_MAP() method but it does not seem to be doing anything. I.e, it just returns the same input I give it:

> smp.find_MAP(logp, {'met': .015, 'age': 9., 'ext': 0., 'dist': 13., 'mass': 5000.,'binar': .3}, verbose=True, bounds=bounds)
      fun: 5950.001300620037
 hess_inv: <6x6 LbfgsInvHessProduct with dtype=float64>
      jac: array([0., 0., 0., 0., 0., 0.])
  message: b'CONVERGENCE: NORM_OF_PROJECTED_GRADIENT_<=_PGTOL'
     nfev: 1
      nit: 0
   status: 0
  success: True
        x: array([1.5e-02, 9.0e+00, 0.0e+00, 1.3e+01, 5.0e+03, 3.0e-01])
State([('met', array(0.015)), ('age', array(9.)), ('ext', array(0.)), ('dist', array(13.)), ('mass', array(5000.)), ('binar', array(0.3))])

and I can easily find a better solution (only changed the second parameter):

> logp(1.5e-02, 9.5e+00, 0.0e+00, 1.3e+01, 5.0e+03, 3.0e-01)
-5890.1386503849135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant