Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaise committed May 24, 2019
1 parent 44d7a27 commit 258b376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alibi/explainers/counterfactual.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def __init__(self,

# return templates
self.instance_dict = dict.fromkeys(['X', 'distance', 'lambda', 'index', 'class', 'proba', 'loss'])
self.return_dict = {'cf': None, 'all': {i:[] for i in range(self.max_lam_steps)}, 'orig_class': None,
self.return_dict = {'cf': None, 'all': {i: [] for i in range(self.max_lam_steps)}, 'orig_class': None,
'orig_proba': None} # type: dict

def _initialize(self, X: np.ndarray) -> np.ndarray:
Expand Down Expand Up @@ -302,7 +302,7 @@ def explain(self, X: np.ndarray) -> Dict:

return_dict = self.return_dict.copy()
self.instance_dict = dict.fromkeys(['X', 'distance', 'lambda', 'index', 'class', 'proba', 'loss'])
self.return_dict = {'cf': None, 'all': {i:[] for i in range(self.max_lam_steps)}, 'orig_class': None,
self.return_dict = {'cf': None, 'all': {i: [] for i in range(self.max_lam_steps)}, 'orig_class': None,
'orig_proba': None}

return return_dict
Expand Down

0 comments on commit 258b376

Please sign in to comment.