Functional API Reference
This page contains the reference for the functional API of attribench.
The functional API is generally easier to use for simple cases, but note
that the functional API does not support multi-GPU computations.
If you want to run a large-scale benchmarking experiment on multiple GPUs,
you should use the attribench object-oriented API instead.
General
|
Select correctly classified samples from a dataset and optionally write them to a HDF5 file. |
Train adversarial patches for a given model and dataset. |
|
Compute attributions for a given model and dataset using a dictionary of attribution methods, and optionally write them to a HDF5 file. |
Metrics
Computes the Deletion metric for a given |
|
Computes the Insertion metric for a given |
|
Computes the Impact Coverage metric for a given dataset, model, and set of attribution methods. |
|
|
Computes the IROF metric for a given |
Computes the Infidelity metric for a given |
|
Computes the Max-Sensitivity metric for a given Dataset and attribution methods. |
|
Computes Minimal Subset Deletion or Insertion for a given |
|
Computes the Sensitivity-n metric for a given |