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

Causal Specification Refactor? #245

Open
f-allian opened this issue Nov 7, 2023 · 1 comment
Open

Causal Specification Refactor? #245

f-allian opened this issue Nov 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@f-allian
Copy link
Contributor

f-allian commented Nov 7, 2023

Is the Causal Specification data class necessary? In all examples we have, the variable causal_specification = CausalSpecification(scenario, causal_dag) is created but never used. Other than for formal definitions (and maybe our unit tests), do we need it or should we remove it?

@f-allian f-allian added the enhancement New feature or request label Nov 7, 2023
@christopher-wild
Copy link
Contributor

It appears that the Causal Specification was made as a data class to match the abstract idea of a 'causal_specification'. It was also a useful packing of the scenario and causal_dag for the CausalTestEngine, which had far too many attributes.

Now we don't have an engine I don't think it's as necessary from purely a code perspective. Not sure on how useful it is for it to match the phrasing of the paper though.

It looks like it is still used in the json front end & test suite. But this is just packing the two input classes then immediately unpacking them by the looks of it. So should be not too much to undo that and remove the class!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants