Skip to main content

Hardened Extension of the Adversarial Robustness Toolbox (HEART)

Static Badge

HEART is a Python extension library for Machine Learning Security that builds on the popular Adversarial Robustness algorithms within the Adversarial Robustness Toolbox (ART). The extension library allows the user to leverage core ART algorithms while providing additional benefits to AI Test & Evaluation (T&E) engineers. HEART documentation can be found here.

  • Support for T&E of models for Department of Defense use cases
  • Alignment to MAITE protocols for seamless T&E workflows
  • Essential subset of adversarial robustness methods for targeted AI security coverage
  • Quality assurance of model assessments in the form of metadata
  • In-depth support for users based on codified T&E expert experience in form of guides and examples
  • Front-end application for low-code users: HEART Gradio Application

Installation

From Python Packaging Index (PyPI)

To install the latest version of HEART from PyPI, run:

pip install heart-library

From IBM GitHub Source

To install the latest version of HEART from the heart-library public GitHub, run:

git clone https://github.com/IBM/heart-library.git
cd heart-library
pip install .

(Optional) Development Environment via Poetry

In some cases, it may be beneficial for developers to set up an environment from a reproducible source of truth. This environment is useful for developers that wish to work within a pull request or leverage the same development conditions used by HEART contributors. Please follow the instructions for installation via Poetry within the official HEART repository:

Getting Started With HEART

IBM has published a catalog of notebooks designed to assist developers of all skill levels with the process of getting started utilizing HEART in their AI T&E workflows. These Jupyter notebooks can be accessed within the official heart-library GitHub repository:

HEART Modules

The HEART library is organized into three primary modules: attacks, estimators, and metrics.

heart_library.attacks

The HEART attacks module contains implementations of attack algorithms for generating adversarial examples and evaluating model robustness.

heart_library.estimators

The HEART estimators module contains classes that wrap and extend the evaluated model to make it compatible with attacks and metrics.

heart_library.metrics

The HEART metrics module implements industry standard, commonly-used T&E metrics for model evaluation.

Download files

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

Source Distribution

heart_library-0.5.0.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heart_library-0.5.0-py3-none-any.whl (45.5 kB view details)

Uploaded Python 3

File details

Details for the file heart_library-0.5.0.tar.gz.

File metadata

  • Download URL: heart_library-0.5.0.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for heart_library-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b2c3aa0caebe27c6e55eb0a94b8929ec57d814158f6804319b377de2c39523ca
MD5 8b53acc220b8c2b8fcf2c3ad853f65b7
BLAKE2b-256 86639af766c6cd58507d10167d935aa75e3de3d83da33ba36163f717dc0866c4

See more details on using hashes here.

File details

Details for the file heart_library-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: heart_library-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 45.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for heart_library-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dec069c9cb1bedcbafb09ca9328bd599a82844437d58eb9737a11f6e88d0635c
MD5 1c4b33d9e1f3ac73e6ed4e558477e1d3
BLAKE2b-256 0a2a3328a03ba70720423439c24d813aebab4d6f334abad2077bb210d7769c51

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.0

2 files

0.6.3

2 files

0.6.0

2 files

This release

0.5.0 This release

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.3

2 files

0.3.1

2 files

0.3.0

2 files

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