rmnldwg / lymph

Python package for statistical modelling of lymphatic metastatic spread in head & neck cancer.

Home Page:https://lymph-model.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sampler

rmnldwg opened this issue · comments

I find myself copying and pasting lots of settings and code snippets from one Jupyter notebook to the other whenever I want to do a sampling/inference round.

Maybe I could come up with a utility function/class that takes care of most of the things and possibly make the whole setup more reproducible by storing the settings and results in e.g. an HDF5 file neatly.

One idea would be something like a LymphSampler class that inherits from emcee's awesome EnsembleSampler but adds some functionality like storing the settings and the results automatically in an HDF5 file.