Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
slundberg committed Apr 14, 2018
1 parent 12e3a9a commit 82d2c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shap/explainers/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def shap_values(self, X, **kwargs):
self._current_x_missing = x_missing

# Only python 3 can serialize a method to send to another process
if sys.version_info[0] < 3:
if sys.version_info[0] >= 3:
phi = np.stack(pool.map(self._tree_shap_ind, range(X.shape[0])), 0)
else:
phi = np.stack(map(self._tree_shap_ind, range(X.shape[0])), 0)
Expand Down

0 comments on commit 82d2c07

Please sign in to comment.