Source code for dice_ml.utils.serialize

[docs]class DummyDataInterface: def __init__(self, outcome_name, data_df=None): self.outcome_name = outcome_name self.data_df = None if data_df is not None: self.data_df = data_df
[docs] def to_json(self): return { 'outcome_name': self.outcome_name, 'data_df': self.data_df }