Open ProGamerGov opened 2 years ago
@ProGamerGov GradientShap is internally using InputBaselineXGradient and we decided not to expose it in the public API. It is indirectly being tested by the GradientShap test cases but I agree that we could add additional tests for it and expose it in the API. To fix the rst issue we could perhaps remove
.. autoclass:: captum.attr.InputBaselineXGradient
:members:
In a separate PR we can expose InputBaselineXGradient. So far we haven't heard requests about using InputBaselineXGradient.
@NarineK I removed InputBaselineXGradient
from the rst file in: https://github.com/pytorch/captum/pull/985
🐛 Bug
I found a module that was listed in the code and on the API docs site, but there's not public path to use it and no tests were ever written for it:
https://github.com/pytorch/captum/blob/master/captum/attr/_core/gradient_shap.py#L292 Listed as part of the website API here: https://github.com/pytorch/captum/blob/master/sphinx/source/gradient_shap.rst
I discovered this module's existence from the Sphinx logs:
Edit:
It appears like a decision was made to not make
InputBaselineXGradient
in https://github.com/pytorch/captum/pull/175 back in 2019, but it's not used anywhere in the Captum code at the moment: https://github.com/pytorch/captum/search?q=InputBaselineXGradient