delta-audit

Getting Started with Delta-Audit

This guide will help you get up and running with Delta-Audit quickly.

Installation

Prerequisites

Install from Source

# Clone the repository
git clone https://github.com/arshiahemmat/delta-audit.git
cd delta-audit

# Create a virtual environment
python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install the package
pip install -e .
pip install -r requirements.txt

Install Dependencies

The main dependencies are:

Quick Start

1. Run a Quick Demonstration

# This runs a single experiment (wine dataset, logistic regression)
delta-audit quickstart

This will:

2. Run the Full Benchmark

# This runs all 45 experiments (5 algorithms × 3 pairs × 3 datasets)
delta-audit run --config configs/full_benchmark.yaml

This will:

3. Generate Figures

# Generate overview figures from results
delta-audit figures --summary results/_summary --out figures/

This will create:

4. Check Results

# Run sanity checks and print key statistics
delta-audit check

This will display:

Understanding the Output

Results Files

Key Metrics to Look For

Configuration

Delta-Audit uses YAML configuration files to define experiments:

datasets:
  - breast_cancer
  - wine
  - digits

algo_pairs:
  logreg:
    - A: {C: 1.0, penalty: l2, solver: lbfgs}
      B: {C: 0.1, penalty: l2, solver: lbfgs}
      pair_name: pair1

experiment_settings:
  test_size: 0.2
  random_state: 42
  baseline_method: mean

Next Steps

Troubleshooting

Common Issues

  1. Import errors: Make sure you’re in the virtual environment
  2. Memory issues: The full benchmark requires ~2GB RAM
  3. Slow execution: The full benchmark takes 10-30 minutes depending on your machine

Getting Help