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.
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.