Source code for dowhy.interpreters.textual_interpreter
from dowhy.interpreter import Interpreter
[docs]class TextualInterpreter(Interpreter):
"""Base class for interpreters that show text as output.
"""
def __init__(self, instance, **kwargs):
super().__init__(instance, **kwargs)
[docs] def show(self, interpret_text):
"""Display the intepretation.
:param interpret_text: String containing the interpretation
:returns: None
"""
print(interpret_text) # can be extended later to provide a prettier output