Skip to main content

ArgueView


Build Status

ArgueView is a tool for generating text-based presentations for machine-learning predictions and feature-importance based explanation tools. The tool makes use of Toulmin's model of argumentation for structuring the text-based explanations.

Example output using the visualizer:

Example Visualization Example output

The procedure for creating ArgueView explanations is as follows:

  1. A traditional machine-learning context is created (i.e. data, model)
  2. An explainer is employed to produce feature importance. This can be a white-box or black-box explainer. An example of a black-box explainer is LIME.
  3. The machine-learning context and the feature importance are given to ArgueView such that it can produce a textual explanation.

Procedure visualization

Installation

ArgueView is available as a python package on PyPi. You can install it using pip:

pip install argueview

Or, using pipenv:

pipenv install argueview

Usage

Usage is documented in our examples. Examples are available in python and jupyter notebooks. The following examples are available:

Running the examples

There are two examples available to help you learn how to use ArgueView. The 'plain' examples uses hypothetical data to show a minimalistic use-case. The CreditG example uses real data and a real ML model to illustrate a real-world use case.

If you would like to run the CreditG example the script needs to obtain the data. For this we use OpenML. However, usage requires a valid API key and you will need to obtain one to run the example.

After you have obtained your key, create a .env file with your OpenML API key.

echo "OML_APIKEY={my-key}" > .env

Note: You can skip this step if you want to run the hypothetical example.

Install all dependencies:

pipenv install --dev

Run an example:

/path/to/python3 ./examples/{example}/example.py

Additionally, there is are Jupyther Notebooks available to directly see how ArgueView works.

Building

Follow these steps to build ArgueView from source.

  • make sure you install the dependencies. ArgueView requires the following dependencies: python>=3.5, pip3, pipenv, git.
  • build using make
    make
    

Using Docker

Alternatively you can build ArgueView using docker.

  • build context dockerfile
    docker build -t argueview/context:local .
    
  • run build.sh in a container
    CID=$(docker run 
        -v /var/run/docker.sock:/var/run/docker.sock
        argueview/context
        build.sh)
    
  • copy results from the container
    docker cp ${CID}:/argueview/argueview.egg-info ./argueview.egg-info
    docker cp ${CID}:/argueview/build ./build
    docker cp ${CID}:/argueview/dist ./dist
    

Metadata

Release files for argueview 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for argueview 0.2.1
File Size Uploaded Provenance
argueview-0.2.1.tar.gz 77.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for argueview 0.2.1
File Interpreter ABI Platform
argueview-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 102.6 kB

Release files / argueview-0.2.1.tar.gz

Download URL argueview-0.2.1.tar.gz
Size 77.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c77f9ca14b0fbec9602b9d0b55478d3d02070bb6f33507a4ad427cc5e72c7359
BLAKE2b-256 checksum
How to use checksums
7ff49751bcc430874540c4244e973c30fbb10129b1d3e59b62f218f6ed82aed7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.25.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.54.1 CPython/3.8.5

Release files / argueview-0.2.1-py3-none-any.whl

Download URL argueview-0.2.1-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cdceb29c53b3f004d5cb3c2ca891a0880459ac555264475b79469319fec0506
BLAKE2b-256 checksum
How to use checksums
f551200343ee4eedc3f22863db9437bc56ec107afeb9f0850782562ca2555970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.25.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.54.1 CPython/3.8.5

Security for argueview 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page