Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in deserializing counterfactual explainer #1554

Merged
merged 1 commit into from
Jul 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down