Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pritishaw1/7376d0298fcc4a6eab490277c4a92a18 to your computer and use it in GitHub Desktop.
Save pritishaw1/7376d0298fcc4a6eab490277c4a92a18 to your computer and use it in GitHub Desktop.
temp_1, mask_1 = explanation.get_image_and_mask(explanation.top_labels[0], positive_only=True, num_features=5, hide_rest=True)
temp_2, mask_2 = explanation.get_image_and_mask(explanation.top_labels[0], positive_only=False, num_features=10, hide_rest=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment