Skip to content

Feature Request: Pass Stan model as string to CmdStanModel #757

@fonnesbeck

Description

@fonnesbeck

Summary:

Add an optional argument for passing Stan model as string to CmdStanModel

Description:

It would be a huge convenience to be able to pass a Stan model to CmdStanModel as a string, rather than first having to write it to a file. Adding boilerplate code to write a string to a file from Python only to load it back for the model to use seems unnecessary from a user's standpoint. Happily you can pass the data to the model directly as a dict; you should be able to do the same for the model.

Current Version:

1.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions