Skip to content

Commit

Permalink
Fixed bug in lime_image where top_labels=None
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotcr committed Jul 11, 2017
1 parent 97a1e2d commit 9ab754b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lime/lime_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def explain_instance(self, image, classifier_fn, labels=(1,),
else:
fudged_image[:] = hide_color

top = labels

data, labels = self.data_labels(image, fudged_image, segments,
classifier_fn, num_samples,
batch_size=batch_size)
Expand Down

0 comments on commit 9ab754b

Please sign in to comment.