Skip to content

Behaviour of transformed_data in from_cmdstanpy converter #147

@OriolAbril

Description

@OriolAbril

Stan programs have a set of defined blocks like data, parameters or model. from_cmdstanpy has two observed_data and constant_data that take dictionaries of string->array-like, and data in a similar fashion is a required input when sampling with cmdstanpy. But there is also a transformed data block. Users can obviously transform the data manually and add it to the respective dict. But if there is a way to have cmdstanpy handle the transformations I think it would be nice to avoid this duplication.

An option that comes to mind could be adding {"key": None} to signal the value should be extracted/generated from the transformed data block.

How do other people feel about this? Anyone knows if it is possible? Other better ideas for the API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions