Simulation-Decomposition / simdec-python

Sensitivity analysis using simulation decomposition
https://simdec.readthedocs.io
BSD 3-Clause "New" or "Revised" License
21 stars 0 forks source link

Add sampling app #22

Closed tupui closed 6 months ago

tupui commented 9 months ago

This is a POC of a sampling app.

Screenshot 2023-10-31 at 23 21 11

By having multiple apps, we can either have an index (need to work on the html) or leave this out and reference the apps ourselves. Here is an example of such index.

Screenshot 2023-10-31 at 23 19 52

cc @gnopik

tupui commented 9 months ago

Something to solve/mitigate. Having a dynamic list for the parameters is tricky to update automagically. For the moment, ones need to change the number of samples or the method after having changed a parametrisation. Non ideal, but it works for now without magic in the code.

Another thing to watch out, for the parametrisation of the distributions: we have to allow passing a dictionary. If this really goes into production we will have to look into hardening this as user can input anything and we actually execute this on the backend. We only need to allow passing a dictionary with limited support to str, int, float.

gnopik commented 9 months ago

Whichever would be easier perhaps?

My only suggestion is to make it dumb-proof by calling