Comments (5)
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.
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.
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.
Hi @clement-moulin-frier! Yes I merged it myself in the end, see: 9317966
It seems to have caused no practical problem :)
from explauto.
Cool, well done :)
from explauto.
Related Issues (20)
- Which part of the code is actually used in gmminf? HOT 1
- Running a simple experiment on the Poppy Robot HOT 4
- Import third_party error HOT 2
- progress computation in discretized interest model HOT 5
- Put forward and inverse models in explauto/models ? HOT 4
- Design architecture of GMR HOT 4
- What is the logic behind competence_dist? HOT 6
- forward/inverse check HOT 1
- sensorimotor model I/O mapping HOT 2
- Explaining the logic behing uniform_sensor_testcases? HOT 3
- Utiliser exploauto pour apprendre des actions complexes via l'algo SGIM-ACTS HOT 1
- Meaning of n_sample in gmm_progress HOT 2
- Sampling bias in gmm_progress HOT 1
- ImportError: No module named 'inverse' (Python 3.4) HOT 2
- Tutorial on using a lower-level stochastic policy optimizer in goal exploration processes HOT 1
- tree seems to be worse than discretized_progress in the evaluation plots HOT 3
- Broken dependency in PIP installation HOT 4
- gmminf covariance not available
- Custom sensory effect distance function?
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 explauto.