Skip to content

Add function to get the algorithm option defaults #1133

@avehtari

Description

@avehtari

Currently methods to run Stan algorithms
https://mc-stan.org/cmdstanr/reference/model-method-sample.html
state

Any argument left as NULL will default to the default value used by the installed version of CmdStan. See the CmdStan User’s Guide for more details.

It would be nice to have methods that would call CmdStan help and show the defaults of the actual CmdStan used. For example, we could have a method $sample_defaults(), which would execute the model binary with argument sample help-all. The minimal implementation would print the help text as is (excluding the generic part in the end). A bit nicer version would parse the arguments and defaults to be a nested list so that the defaults could easily be accessed programmatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions