morphoorg / morpho

A python interface with Stan/PyStan Markov Chain Monte Carlo package
Other
4 stars 4 forks source link

Dynamic list of data #115

Open guiguem opened 6 years ago

guiguem commented 6 years ago

Stan cannot load data as vector with an unknown size. When using a python script, this is manageable as the size of the vector can be given to the processor. However, when using a config file, things are hardcoded... This is an issue relatively annoying as we will deal with data objects where the number of observations is unknown until execution.

A possible way is to define an hidden variable for each data which is a list: the pattern could be that, for data named myData, one could have an integer called _N_myData given to pystan.

guiguem commented 6 years ago

Work in progress: https://github.com/project8/morpho/tree/feature/vector_length