Catalog PyPI
PACKAGE EXPLORERView in registry

ADGT

PyPI

Model interpretability for PyTorch

featureimportanceinterpretabilitymodelpytorchunderstanding
Versions collected1
Direct dependencies4From release 0.0.2
Last observed20 Oct, 19:28 UTC

README

Version 0.0.2 documentation

ADGT is a model interpretability and understanding library for PyTorch. ADGT means Attribution Draws Ground Truth contains general purpose implementations of Saliency, InputXGradient, Deconv, LRP, Guided_BackProp, GradCAM, SmoothGrad, DeepLIFT, IntegratedGradients, RectGrad, FullGrad, CAMERAS, GIG, and others for PyTorch models. It provide users a quick and simple start for state-of-the-art modified-BP attribution methods.

ADGT is currently in beta and under active development!

Installation

Installation Requirements

  • Python >= 3.6
  • PyTorch >= 1.2
  • captum
Installing the latest release

You can just copy this code and install ADGT with

python setup.py install

or you can choose to install ADGT with pip

pip install ADGT

Getting Started

Just three lines code, you can use ADGT to interpret why the target model make a decision on input images.


   import ADGT

   adgt = ADGT.ADGT(use_cuda=True, name='ImageNet')

   attribution=adgt.pure_explain(img, model, method, pth))

Note that img is the input image (pytorch tensor), model is the target model (pytorch model), method is the name of attribution methods (algorithms listed below), pth is the save path, the visualization of explanation results (see demo dir) are exported to this dir, if pth is None, it will not export such visualization, attribution is the attrubtion maps (pytorch tensor).

References of Algorithms

License

ADGT is BSD licensed, as found in the LICENSE file.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.27 Jun 20224

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
iceshade000/adgt

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0bf2074a25337c8558d7c1e7610e4632bf05a602d21ab716082498886cd1c0c8