diff --git a/responsibleai/responsibleai/managers/counterfactual_manager.py b/responsibleai/responsibleai/managers/counterfactual_manager.py index 2dfac093af..68c1c88ecb 100644 --- a/responsibleai/responsibleai/managers/counterfactual_manager.py +++ b/responsibleai/responsibleai/managers/counterfactual_manager.py @@ -13,6 +13,7 @@ import pandas as pd from dice_ml import Dice from dice_ml.counterfactual_explanations import CounterfactualExplanations +from dice_ml.explainer_interfaces.explainer_base import ExplainerBase from responsibleai._config.base_config import BaseConfig from responsibleai._data_validations import validate_train_test_categories @@ -335,7 +336,7 @@ def load_explainer(self, explainer_directory_path): file_path = (explainer_directory_path / CounterfactualConfig.EXPLAINER_FILE_NAME) try: - self.explainer.deserialize_explainer(file_path) + self.explainer = ExplainerBase.deserialize_explainer(file_path) except Exception: pass