undark-lab / swyft

A system for scientific simulation-based inference at scale.
Other
154 stars 13 forks source link

invalid value encountered in add np.exp(-log_lambda_target + log_lambda_store) #143

Open GertKl opened 10 months ago

GertKl commented 10 months ago

This concerns swyft 0.3.2, but it seems like one of the developers may be able to identify the problem easily? I'm getting the error

/fp/homes01/u01/ec-gertwk/.conda/envs/swyft3-f/lib/python3.9/site-packages/swyft/store/store.py:296: RuntimeWarning: invalid value encountered in add
  np.exp(-log_lambda_target + log_lambda_store)

Looking at the source-code doesn't help me here. I'm getting the error while trying to train, it seems, even though the problem itself seems to be rooted in the store, so possibly something wrong with the simulations? I'm getting it for all kinds of models though (usually for large training sets 5e+5 and above), including toy models.