adamwawrzynski
adamwawrzynski
Add support for logging training metadata and explanation artifacts to neptune.ai.
Add image segmentation explanation support. There are tutorials from `captum` on this task: https://captum.ai/tutorials/Segmentation_Interpret and https://captum.ai/tutorials/Resnet_TorchVision_Ablation.
While doing the tutorial exercises, I had to fix some bugs to make the examples work. This PR contains the fixes I added to the code.
### Issue Description I wanted to perturb only selected parts of the text using `BertModel` based on this page in the documentation: https://shap.readthedocs.io/en/latest/example_notebooks/text_examples/sentiment_analysis/Using%20custom%20functions%20and%20tokenizers.html#Create-an-explainer. I replaced `for m in re.finditer(r"\W", s):`...