MLResearchAtOSRAM / cause2e

The cause2e package provides tools for performing an end-to-end causal analysis of your data. Developed by Daniel Grünbaum (@dg46).
https://gitlab.com/causal-inference/working-group/-/wikis/home
MIT License
57 stars 4 forks source link

Check variables names when passing domain knowledge #27

Closed dg46 closed 2 years ago

dg46 commented 2 years ago

I have had repeating issues caused by typos in the variable names when passing domain knowledge.

These errors are hard to find manually after you've made them, but it is trivial to detect them in an automated way: For every variable that is used when passing domain knowledge, check if it is actually the name of a data column; otherwise, raise an error.

This check should be part of the "set_knowledge" method of the learner.