Skip to content

Jmafoster1/visualisation - #403

Draft
jmafoster1 wants to merge 5 commits into
mainfrom
jmafoster1/visualisation
Draft

Jmafoster1/visualisation#403
jmafoster1 wants to merge 5 commits into
mainfrom
jmafoster1/visualisation

Conversation

@jmafoster1

@jmafoster1 jmafoster1 commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

This PR adds the capability to visualise causal test results on the DAG.

Main changes

  • Moved visualisation code out of abstract_discovery.py and into a separate dedicated visualisation module, which can grow sustainably over time
  • Moved effect_direction into CausalTestResult class. Ideally, this would be part of EffectEstimate, but that leads to circular imports with CausalEffect

@github-actions

Copy link
Copy Markdown

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
⚠️ PYTHON black 31 1 1.21s
✅ PYTHON pylint 31 0 5.8s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

raise ValueError(f"Test Value type {effect_estimate.type} is not valid for this CausalEffect")

return (~((effect_estimate.ci_low <= value_to_check) & (value_to_check <= effect_estimate.ci_high))).all()
return (~((effect_estimate.ci_low <= value_to_check) & (value_to_check <= effect_estimate.ci_high))).any()

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug fix: This should have been .any() all along

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