Coder Social home page Coder Social logo

Comments (5)

clement-moulin-frier avatar clement-moulin-frier commented on August 22, 2024

Hi John,

Yes, fast_forward(self, log) should do the job. However note that it simply re-updates the SM and IM models in a loop. So:

  • If there is a random process in one of the update(.) functions, it can result in a slightly different model. However I don't think it is the case in any of the available models.
  • The Experiment instance has to be the same as before saving. So be careful if you modify by hand one of the involved objects (e.g. agent or whatever).

For saving and loading: ExperimentLog mainly contains standard python dictionaries, so a .json is maybe easier and more standard than a pickle.

There is a notebook about it (and I see that it actually uses pickle, so do it as you prefer;)

Ask again if you experience problems with pickeling, I remember we had an issue about it, that we solved, but I don't remember what it was (maybe due to parallel processing in ExperimentPool).

Thanks a lot for the contributions!

from explauto.

jgrizou avatar jgrizou commented on August 22, 2024

Thanks for the quick reply! I missed that notebook, my bad.

I implemented the simple pickle way and updated the notebook. It is added to the waiting PR.

It will be more difficult to handle it in json fromat, because the _logs contains some numpy array.

'''fast_forward()''' seems to work fine to reload an xp, and even to xp.run() without crashing!
However I am not sure what happens in the log in such case, especially for the evaluation.

I do not yet master all the log system you are using but do you foresee possible problems?

The main I see is that the run function will start again as iteration and thus it might mess things up. And evaluate_at can cause trouble.

Anyway I will have a deeper look when time permits.

Cheers!

from explauto.

clement-moulin-frier avatar clement-moulin-frier commented on August 22, 2024

Hi @jgrizou ,

I come across this issue by unstacking some old emails. Has the PR been merged eventually? I don't see it in the list.

Thanks!
Clément

from explauto.

jgrizou avatar jgrizou commented on August 22, 2024

Hi @clement-moulin-frier! Yes I merged it myself in the end, see: 9317966

It seems to have caused no practical problem :)

from explauto.

clement-moulin-frier avatar clement-moulin-frier commented on August 22, 2024

Cool, well done :)

from explauto.

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.