Skip to content

fix: correcting decomposition logic#59

Open
justushelo wants to merge 18 commits into
Simulation-Decomposition:mainfrom
justushelo:heterogeneity-index
Open

fix: correcting decomposition logic#59
justushelo wants to merge 18 commits into
Simulation-Decomposition:mainfrom
justushelo:heterogeneity-index

Conversation

@justushelo

Copy link
Copy Markdown
Contributor

Decomposition simdec_app.py and decomposition.py now is ensured to match the logic of:

  • if x1 index >= 0.8, use just it alone
  • if x1 is 0.75 and x2 is 0.06, use these two... etc.
  • simdec_app.py chooses initially 4 variables max
  • decomposition.py chooses 4 variables max when auto_ordering=True

Tests

  • Added tests to ensure correct amount of variables are chosen during decomposition

justushelo added 18 commits May 9, 2026 08:32
- Add heterogeneity indices function.
- Add functionality for printing indices and legend. sensitivity_indices.py edited to get var_names for printing.
- Added guardrails for output parameter in decomposition.py
- Added tests for printing legend.
- Initialize decomposition in dashboard with 0.8*sum(si). Other variables still can be chosen after this.
- Updated docs to print correct second-order effects.
Closes Simulation-Decomposition#46, Closes Simulation-Decomposition#47
- Remove decomposition guardrail.
- Use one print for print_indices.
- Add typing info to visualization.py
- Specify decomposition in visualization.py
- Add Ipython into pyproject.toml and add guardrail for import.
- Add stacklevel=2 into warnings.
- Make a function for plotting heterogeneity indices.
- Work with ax instead of plt.
- Delete unnecessary +.
- Add logging instead of print in heterogeneity_indices.py.
- Set import order correct.
Closes Simulation-Decomposition#46, Closes Simulation-Decomposition#47.
- Combine if/elif structure in visualization.py.
- Add more descriptive ipython dependency into pyproject.toml.
- Add test for two_visualization_output if decomposition is missing.
- Correct import order.
Closes Simulation-Decomposition#46, Closes Simulation-Decomposition#47
- Fix two_output_visulalization order.
- Edit heterogeneity_indices plot title to include heterogeneity indice value.
- Fix heterogeneity_indices test to fit title logic.
- Fix color ordering with Python workflow and dashboard.
- Add tests to ensure correct ordering of color and shades.
- Update structural_reliability.ipynb with correct colors.
- Ensuring explained_variance_80 works as it should.
- Correct decomposition logic inside dashboard and decomposition.py
- Add tests to validate the correct logic
@netlify

netlify Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploy Preview for simdec-io ready!

Name Link
🔨 Latest commit be48fc2
🔍 Latest deploy log https://app.netlify.com/projects/simdec-io/deploys/6a2804177e891900087a0eff
😎 Deploy Preview https://deploy-preview-59--simdec-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant