Starfish-develop / Starfish

Tools for Flexible Spectroscopic Inference
https://starfish.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
69 stars 22 forks source link

RuntimeError: Z's logpdf evaluated to -inf #151

Closed Aseman7 closed 1 year ago

Aseman7 commented 1 year ago

Hi, I got the error about Z's prior value during numerical optimization as the following, do you know what is the problem (my ranges are [2400, 3900], [4.5, 5.5], [-0.5, 0.5] # T, logg, Z)?

priors = { "T": st.norm(2750, 20), "Z": st.uniform(-0.5, 0.5), "Av": st.halfnorm(0, 0.2), "global_cov:log_amp": st.norm(38, 1), "global_cov:log_ls": st.uniform(2, 1), }

%time model.train(priors)

RuntimeError: Z's logpdf evaluated to -inf

Many thanks