Comments (12)
It seems you are using the wrong restore method "dnst.NestedSampler.restore"
instead of dynamic sampler's restore
from dynesty.
Apologies, silly mistake. Thanks.
from dynesty.
actually I'm not sure which restore you use makes a difference, so there is possibly still a bug there...
from dynesty.
Actually, yes, it seems it doesn't help changing to DynamicNestedSampler.restore, however it is unclear if I already 'corrupted' the initial file by trying to load it with NestedSampler. If this cannot be the case, then it seems there is a bug..
from dynesty.
I don't think the file will be corrupted this way.
Do you have a way to reproduce this issue ?
Did you also actively interrupt this run ? or did it stop due to say maxcall or maxiter limit ?
from dynesty.
In that case I would think it is a bug.
Reproducing is complicated, because my run takes a long time to complete the initial stages. The code is also quite large and dependent on data files, I can provide my code, data and the save file from the previous run privately?
It ended due to the max number of batches being executed. I wanted to try extending the number of batches (from 10-> 20).
from dynesty.
PS. If you have a test problem with the dynamic run, you could try restarting it and extending the number of batches to see if it does the same thing.
from dynesty.
Okay, that's the problem.
the resume can only be used to resume an interrupted run, not to continue a run with different parameters.
I can now even see where the error is coming from. The batch sampling was finished, the batch_sampelr was deleted.
There is nothing to resume to.
from dynesty.
It is certainly fixable, but the whole save/restore is very tricky because of the number of possible states of the system.
So I think there is only a bug that the more helpful error message is needed.
from dynesty.
I thought it would be something like this - thanks for explaining!
from dynesty.
Basically if you want to continue running the sampler (adding more batches) after a successful run, I think you can still
.restore and do add_batch().
I have also committed a change 1005fd1 that will issue a warning and will exit if you try to resume the nested run that is finished,
from dynesty.
Thanks!
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
- tqdm example HOT 4
- 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.