Skip to content

Dynamic list of data #115

Description

@guiguem

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions