Skip to content

Conversation

@willGraham01
Copy link
Collaborator

@willGraham01 willGraham01 commented Aug 15, 2025

Reworks the CausaProblem class from the ground-up, now that we can create models via Graph.model.

Essentially implements the "core" concepts from #85. The test_two_normal_example still works as we would expect, given that we have just moved the creation of the Lagrangian from an explicit construction, to being down via the CausalProblem class - though we are still providing the lambda expressions to the CausalEstimand and Constraint classes.

@willGraham01 willGraham01 mentioned this pull request Aug 18, 2025
1 task
@willGraham01 willGraham01 marked this pull request as ready for review August 18, 2025 09:30
@willGraham01 willGraham01 requested a review from mscroggs August 18, 2025 09:33
Copy link
Collaborator

@mscroggs mscroggs left a comment

Choose a reason for hiding this comment

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

Couple of placeholder docstrings and TODOs that I wanted to check we want to leave in. Otherwise looks good

@willGraham01 willGraham01 changed the title Wgraham/causal problem rework CausalProblem rework Aug 18, 2025
@willGraham01
Copy link
Collaborator Author

willGraham01 commented Aug 18, 2025

Couple of placeholder docstrings

Good spot, will fix these

and TODOs that I wanted to check we want to leave in. Otherwise looks good

Yeah I want to leave them in for now, just so I then know what to put in the sub-tasks for #85. The task list is accurate, but figured I'd lay the groundwork before opening a bunch of other tasks on a class that didn't yet exist.

Let me open these now before I forget...

@willGraham01 willGraham01 merged commit e64ba98 into main Aug 18, 2025
5 checks passed
@willGraham01 willGraham01 deleted the wgraham/causal-problem-rework branch August 18, 2025 10:54
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.

3 participants