explainiverse 0.8.0__py3-none-any.whl → 0.8.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
explainiverse/__init__.py CHANGED
@@ -34,7 +34,7 @@ from explainiverse.adapters.sklearn_adapter import SklearnAdapter
34
34
  from explainiverse.adapters import TORCH_AVAILABLE
35
35
  from explainiverse.engine.suite import ExplanationSuite
36
36
 
37
- __version__ = "0.8.0"
37
+ __version__ = "0.8.1"
38
38
 
39
39
  __all__ = [
40
40
  # Core
@@ -940,6 +940,11 @@ class LRPExplainer(BaseExplainer):
940
940
  if activation.dim() > 2:
941
941
  relevance = relevance.reshape(activation.shape)
942
942
 
943
+ elif isinstance(layer, nn.Unflatten):
944
+ # Unflatten in forward expands dimensions: (batch, features) -> (batch, *dims)
945
+ # In backward, reshape relevance to match the flattened input activation
946
+ relevance = relevance.view(activation.shape)
947
+
943
948
  elif isinstance(layer, PASSTHROUGH_LAYERS):
944
949
  # Dropout and other passthrough layers
945
950
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: explainiverse
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: Unified, extensible explainability framework supporting 18 XAI methods including LIME, SHAP, LRP, TCAV, GradCAM, and more
5
5
  Home-page: https://github.com/jemsbhai/explainiverse
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- explainiverse/__init__.py,sha256=CKFagMPKfejfb6ejGktuiLwfo8j92jNAhzmKJkyYWnI,1694
1
+ explainiverse/__init__.py,sha256=fnB58cF7z1PvBjNkKvEcmXI0u2l3T3FYLyCx1sLEmXQ,1694
2
2
  explainiverse/adapters/__init__.py,sha256=HcQGISyp-YQ4jEj2IYveX_c9X5otLcTNWRnVRRhzRik,781
3
3
  explainiverse/adapters/base_adapter.py,sha256=Nqt0GeDn_-PjTyJcZsE8dRTulavqFQsv8sMYWS_ps-M,603
4
4
  explainiverse/adapters/pytorch_adapter.py,sha256=DLQKJ7gB0foPwAmcrru7QdZnPRnhqDKpFCT-EaD3420,15612
@@ -32,13 +32,13 @@ explainiverse/explainers/gradient/__init__.py,sha256=BAMGRO-UsGJx7lD3XG34mJAGHFW
32
32
  explainiverse/explainers/gradient/deeplift.py,sha256=MWOlslizUeoZs31moy2iBgp02N08nBsVU-RoEpODg3M,27775
33
33
  explainiverse/explainers/gradient/gradcam.py,sha256=ywW_8PhALwegkpSUDQMFvvVFkA5NnMMW6BB5tb3i8bw,13721
34
34
  explainiverse/explainers/gradient/integrated_gradients.py,sha256=EfIX4TMwfSx7Tl_2efy-oLFt9Xx7byJPV8DxbtFIeKw,18098
35
- explainiverse/explainers/gradient/lrp.py,sha256=hr7-VJQiicCSsPc-408N1Mhd10XrlxQHdyeYsaHOfQo,45161
35
+ explainiverse/explainers/gradient/lrp.py,sha256=ipHC1bgace2KJjlk6UnNWHFsMzNxofVYRjFphc1Ym4g,45469
36
36
  explainiverse/explainers/gradient/saliency.py,sha256=pcimyuSqKzsIR1yCMNWfH2M7T_vcDKkwcVv0zQlPL3w,10305
37
37
  explainiverse/explainers/gradient/smoothgrad.py,sha256=COIKZSFcApmMkA62M0AForHiYlQ6hSFx5hZIabRXGlM,15727
38
38
  explainiverse/explainers/gradient/tcav.py,sha256=zc-8wMsc2ZOhUeSZNBJ6H6BPXlVMJ9DRcAMiL25wU9I,32242
39
39
  explainiverse/explainers/rule_based/__init__.py,sha256=gKzlFCAzwurAMLJcuYgal4XhDj1thteBGcaHWmN7iWk,243
40
40
  explainiverse/explainers/rule_based/anchors_wrapper.py,sha256=ML7W6aam-eMGZHy5ilol8qupZvNBJpYAFatEEPnuMyo,13254
41
- explainiverse-0.8.0.dist-info/LICENSE,sha256=28rbHe8rJgmUlRdxJACfq1Sj-MtCEhyHxkJedQd1ZYA,1070
42
- explainiverse-0.8.0.dist-info/METADATA,sha256=KquLWUS2Rz3N6uR4WxnTaf5coczo8X0vxLPSW1Mdkak,23770
43
- explainiverse-0.8.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
44
- explainiverse-0.8.0.dist-info/RECORD,,
41
+ explainiverse-0.8.1.dist-info/LICENSE,sha256=28rbHe8rJgmUlRdxJACfq1Sj-MtCEhyHxkJedQd1ZYA,1070
42
+ explainiverse-0.8.1.dist-info/METADATA,sha256=A5NjgO7v2I-P8sjFW8yaJCd_VcU_Dqumq2iRdl0_Fbc,23770
43
+ explainiverse-0.8.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
44
+ explainiverse-0.8.1.dist-info/RECORD,,