Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter spec API #548

Open
maedoc opened this issue Apr 4, 2022 · 0 comments
Open

Parameter spec API #548

maedoc opened this issue Apr 4, 2022 · 0 comments
Labels
area/scilib enhancement New feature or request

Comments

@maedoc
Copy link
Member

maedoc commented Apr 4, 2022

Describe the new feature or enhancement

To avoid ad-hoc arrays for configuration of parameter sweeps or priors over parameters (for inference), a new datatype is required which can express the distribution of one or more parameters. This would include "spatial" parameters currently expressed as arrays with one value per region or vertex. Attributes of models or other simulator elements can then accept such Parameter instances instead of raw NumPy array. The downstream simulation code then can make appropriate use of these instances.

A second use for a parameter API is specifying distributions over parameters for the purposes of inference.

Describe your proposed implementation

If the API should be usable by the framework then it may need to be implemented with traits. Otherwise a dataclass implementation may be simpler to do.

Additional comments

An initial partial discussion is taking place at #540

@maedoc maedoc added enhancement New feature or request area/scilib labels Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/scilib enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant