Comments (4)
Hi,
I am pretty certain if you have tqdm installed and specify print_progress=True
tqdm will be used.
from dynesty.
Hi,
I am pretty certain if you have tqdm installed and specify print_progress=True tqdm will be used.
That's not working for me :( I'm currently using python 3.11.5 with dynesty 2.1.3 and tqdm 4.65.0. I created a simple function that works but the progress bar is still default.
def dynesty_fit(ndim=38,nlive=1000,bound="walk",sample="rwalk",nthreads=2):
print("Running dynesty ... ")
with contextlib.closing(Pool(processes= nthreads - 1)) as executor:
sampler = DynamicNestedSampler(lnlike, lnprior, ndim, bound=bound, sample=sample , nlive = nlive, pool=executor, queue_size=nthreads)
sampler.run_nested(print_progress=True)
res = sampler.results
weights = np.exp(res['logwt'] - res['logz'][-1])
postsamples = resample_equal(res.samples, weights)
return postsamples
It shows this bar while running:
Can it be a problem with parallelization?
from dynesty.
This bar is from tqdm I believe. (there is no progress bar in a classical sense since we don't know how many iterations will be needed, so it's just an updated message which should be updated in real time)
from dynesty.
This bar is from tqdm I believe. (there is no progress bar in a classical sense since we don't know how many iterations will be needed, so it's just an updated message which should be updated in real time)
Ohhh, I understand. Thank you!
from dynesty.
Related Issues (20)
- Recover partial chains from the dynesty.save checkpoint file
- An issue about dynesty posterior HOT 6
- live point's likelihood not valid HOT 6
- Documentation incorrect for Pool helper object HOT 1
- Importing Nested Sampling chains from file to plot HOT 2
- Using dynesty with npdim HOT 8
- Questions about dyplot.cornerplot HOT 4
- Questions about DynamicNestedSampler setting HOT 4
- Periodic parameters improvement by rotating them
- Ellipsoid check failed HOT 2
- Discretised prior in Dynesty HOT 7
- Loglstar and logZ values HOT 1
- Importance weight PDF shape HOT 4
- How to access posteriors? HOT 1
- Doubt on sampling methods HOT 6
- Run-to-run instability of logZ HOT 8
- Using weighted samples HOT 3
- blob issues when add_live HOT 4
- log means log_e or log_10? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynesty.