Skip to content

Commit

Permalink
Fix anchor tabular explanation serialization (kubeflow#443)
Browse files Browse the repository at this point in the history
* Fix anchor tabular explanation serialization

* Update fix for anchor tabular
  • Loading branch information
ukclivecox authored and k8s-ci-robot committed Oct 18, 2019
1 parent 8fa0ca6 commit a376b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/alibiexplainer/alibiexplainer/anchor_tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def explain(self, inputs: List) -> Dict:
anchor_exp['raw']['examples'][i][key] = parr.values

instance = anchor_exp['raw']['instance']
anchor_exp['raw']['instance'] = pd.DataFrame(instance).replace(self.cmap).values
anchor_exp['raw']['instance'] = pd.DataFrame([instance]).replace(self.cmap).values.squeeze()
return anchor_exp
else:
raise Exception("Explainer not initialized")

0 comments on commit a376b5d

Please sign in to comment.