Skip to content

Commit

Permalink
Remove error case handled by _get_feature_names
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Jun 21, 2017
1 parent d71442f commit 6ee3bd5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions eli5/sklearn/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ def __call__(self, est, in_names=None):

in_names = _get_feature_names(est, feature_names=in_names,
num_features=W.shape[1])
if len(in_names) != W.shape[1]:
raise ValueError('Got in_names of length {}, but '
'weights.shape[1]=={}'.format(len(in_names),
W.shape[1]))

if self.top:
fmt = self.contrib_fmt.format
Expand Down

0 comments on commit 6ee3bd5

Please sign in to comment.