Cannot compute a bounding ellipsoid to a single point if `pointvol` is not specified
See original GitHub issueHi, I encountered this error when using DynamicNestedSampler with hslice and my own function of grad_u. This error shows up immediately when the sampler reaches the dlog_z_init, which is 50.0 in my setting. I think hslice works as my grad_u function was called without errors. ndim of the problem is around 90.
Error message:
create run dir: /home/chad/codebase/project/example/xx/_/res/res_100_/seed0/case0/dyn28
using dynamic nested sampling
iter: 2681 | batch: 0 | bound: 1 | nc: 1 | ncall: 865688 | eff(%): 0.310 | loglstar: -inf < -26.582 < inf | logz: -36.999 +/- 0.914 | dlogz: 0.617 > 50.000 Traceback (most recent call last):
File "/home/chad/codebase/project/example/xx/_/dynamic_ns_incremental.py", line 15, in <module>
dynesty_run_batch(500, case_dir, data_file, data_format, parallel_config = {'queue_size': 64},
File "/home/chad/codebase/project/src/xx/RunBatch.py", line 289, in dynesty_run_batch
sample_arr = solver.sample(live_points=live_points, pool=pool, queue_size=parallel_config['queue_size'],
File "/home/chad/codebase/project/src/sampler/NestedSampling.py", line 97, in sample
sampler.run_nested(dlogz_init=dlogz, nlive_init=seed_num,
File "/home/chad/codebase/project/venv/lib/python3.8/site-packages/dynesty-1.1-py3.8.egg/dynesty/dynamicsampler.py", line 1647, in run_nested
File "/home/chad/codebase/project/venv/lib/python3.8/site-packages/dynesty-1.1-py3.8.egg/dynesty/dynamicsampler.py", line 1767, in add_batch
File "/home/chad/codebase/project/venv/lib/python3.8/site-packages/dynesty-1.1-py3.8.egg/dynesty/dynamicsampler.py", line 1128, in sample_batch
File "/home/chad/codebase/project/venv/lib/python3.8/site-packages/dynesty-1.1-py3.8.egg/dynesty/nestedsamplers.py", line 684, in update
File "/home/chad/codebase/project/venv/lib/python3.8/site-packages/dynesty-1.1-py3.8.egg/dynesty/bounding.py", line 584, in update
File "/home/chad/codebase/project/venv/lib/python3.8/site-packages/dynesty-1.1-py3.8.egg/dynesty/bounding.py", line 1316, in bounding_ellipsoid
ValueError: Cannot compute a bounding ellipsoid to a single point if `pointvol` is not specified.
I am using the current development version of dynesty with my own loglikelihood and prior_transform functions. I extracted useful parts in my code so a snippet of my code looks like this:
dns_params={'wt_kwargs': {'pfrac': 1.0},
'stop_kwargs': {'post_thresh': .5},
'nlive_batch': 300,
'maxiter_init': 10000,
'maxiter_batch': 1000,
'maxbatch': 10}
sampler = DynamicNestedSampler(
loglikelihood=loglike,
prior_transform=ptform,
periodic=periodic,
gradient=grad_u,
ndim=90, **kwargs)
sampler.run_nested(dlogz_init=50, nlive_init=500,
**dns_params)
I really want to see the sampling results ASAP. Is there a hacky way to get around this error?
Issue Analytics
- State:
- Created 2 years ago
- Comments:25 (4 by maintainers)
Top Results From Across the Web
[R] Bounding ellipse for any set of points
Plots the points and ellipse. Default TRUE. ## max.iter The maximum number of iterations. If the script tries this ## number of iterations ......
Read more >Bounding Ellipsoids — nestle 0.2.0 documentation
Illustration of determining bounding ellipsoids in 3 dimensions. For complex iso-likelihood surfaces (ones not well-approximated by a single ellipsoid), Nestle ...
Read more >UltraNest 3.5.7 documentation
Calculate bounding ellipsoid containing a set of points x. Parameters. x ((npoints, ndim) ndarray) – Coordinates of uniformly sampled points. pointvol ...
Read more >Bounding ellipse - java - Stack Overflow
Here's the result of the MATLAB code on a set of 10 random 2D points (blue). results. Other methods like PCA does not...
Read more >A new approach for Robot selection in manufacturing ... - Gale
Thus, interval type-2 fuzzy sets were proposed according to certain simplification assumptions ... If the point is feasible, then the algorithm terminates.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fantastic! So glad we could resolve this 😄.
This is a part of the result for that problem with dim=126 using dynamic nested sampling and rslice.
STDOUT:
Saved summary:
I have plotted the resulting samples and they look reasonable to me. Thanks for tracing down bugs to resolve the issue and all discussions!!! Thank you very much!!! @segasai @joshspeagle