Coder Social home page Coder Social logo

Comments (12)

segasai avatar segasai commented on June 12, 2024

It seems you are using the wrong restore method "dnst.NestedSampler.restore"
instead of dynamic sampler's restore

from dynesty.

ajw278 avatar ajw278 commented on June 12, 2024

Apologies, silly mistake. Thanks.

from dynesty.

segasai avatar segasai commented on June 12, 2024

actually I'm not sure which restore you use makes a difference, so there is possibly still a bug there...

from dynesty.

ajw278 avatar ajw278 commented on June 12, 2024

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.

segasai avatar segasai commented on June 12, 2024

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.

ajw278 avatar ajw278 commented on June 12, 2024

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.

ajw278 avatar ajw278 commented on June 12, 2024

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.

segasai avatar segasai commented on June 12, 2024

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.

segasai avatar segasai commented on June 12, 2024

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.

ajw278 avatar ajw278 commented on June 12, 2024

I thought it would be something like this - thanks for explaining!

from dynesty.

segasai avatar segasai commented on June 12, 2024

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.

ajw278 avatar ajw278 commented on June 12, 2024

Thanks!

from dynesty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.