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.

Metadata

Release files for heart-library 0.3.3

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

Source distribution (sdist)

Source distribution for heart-library 0.3.3
File Size Uploaded
heart_library-0.3.3.tar.gz 20.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for heart-library 0.3.3
File Interpreter ABI Platform
heart_library-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 54.3 kB

Release files / heart_library-0.3.3.tar.gz

Download URL heart_library-0.3.3.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b5e561d9b74be949bb662ef57848a706da2f0ceb3a9ec02fa382228d4224934d
BLAKE2b-256 checksum
How to use checksums
18dec73f1ec2fd9f18769d4d4ef29eab421b0f20bf81f2f49a27a6d1ab4b8151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.14

Release files / heart_library-0.3.3-py3-none-any.whl

Download URL heart_library-0.3.3-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79040e75c47ec00121bb2761790a833403a2843d3e97414d71e3eb704118a139
BLAKE2b-256 checksum
How to use checksums
c325426b2a666f1e7c883ea824cd1d85aaf08bd030d5414ca06ff8086424652e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.14

Release history Release notifications | RSS feed

0.7.0

2 release files

0.6.3

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

This release

0.3.3 This release

2 release files

0.3.1

2 release files

0.3.0

2 release 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