Skip to main content

Python library for auditing model stability and fairness

Project description

Virny Software Library

CI Pipeline documentation pypi bsd_3_license code_size last_commit

📜 Description

Virny is a Python library for auditing model stability and fairness. The Virny library was developed based on three fundamental principles:

  1. easy extensibility of model analysis capabilities;
  2. compatibility to user-defined/custom datasets and model types;
  3. simple composition of parity metrics based on context of use.

Virny decouples model auditing into several stages, including: subgroup metrics computation, group metrics composition, and metrics visualization and reporting. This gives data scientists and practitioners more control and flexibility to use the library for model development and monitoring post-deployment.

For quickstart, look at our Use Case Examples.

📒 Documentation

💡 Features

  • Entire pipeline for auditing model stability and fairness
  • Metrics reports and visualizations
  • Ability to analyze intersections of sensitive attributes
  • Blind classifiers audit
  • Interface for multiple runs and multiple models
  • User-friendly parameters input via config yaml files
  • Built-in preprocessing techniques for raw classification datasets
  • Check out our documentation for a comprehensive overview

📖 Library Terminology

This section briefly explains the main terminology used in our library.

  • A sensitive attribute is an attribute that partitions the population into groups with unequal benefits received.
  • A protected group (or simply group) is created by partitioning the population by one or many sensitive attributes.
  • A privileged value of a sensitive attribute is a value that gives more benefit to a protected group, which includes it, than to protected groups, which do not include it.
  • A subgroup is created by splitting a protected group by privileges and disprivileged values.
  • A group metric is a metric that shows the relation between privileged and disprivileged subgroups created based on one or many sensitive attributes.

🛠 Installation

Virny supports Python 3.8 (recommended), 3.9 and can be installed with pip:

pip install virny

🤗 Affiliations

NYU-UCU-Logos

📝 License

Virny is free and open-source software licensed under the 3-clause BSD license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

virny-0.2.0.tar.gz (2.8 MB view hashes)

Uploaded Source

Built Distribution

virny-0.2.0-py3-none-any.whl (2.9 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page