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

Better descriptions for random initializations #45

Open
mstimberg opened this issue Nov 6, 2020 · 0 comments
Open

Better descriptions for random initializations #45

mstimberg opened this issue Nov 6, 2020 · 0 comments
Labels
component: model description Automatic model description framework

Comments

@mstimberg
Copy link
Member

With the polishing branch, intializations that refer to rand() or randn() already look a bit nicer. But I think we could use this as a first example of automatic annotation with additional analysis.
If an expression only contains a single rand() call, we can use sympy's substitution mechanism and substitute it once with 0 and once with 1, and then use this to display the lower and upper bounds. So if you have an initialization like:

v = El + (V_th - El)*rand()

This would currently be displayed as:
image

but we could further annotate this with something like
image

We could probably do something fancy with sympy as well to get the mean and variance of a normal distribution if the expression uses randn().

@mstimberg mstimberg added the component: model description Automatic model description framework label Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: model description Automatic model description framework
Projects
None yet
Development

No branches or pull requests

1 participant