Skip to main content

AI Verify Test Engine provides core interfaces, converters, data, model and plugin managers to facilitate the development of tests for AI systems. It is used as a base library for all AI Verify official stock-plugins and can be used to develop custom plugins.

Project description

AI Verify Test Engine

Description

AI Verify Test Engine provides core interfaces, converters, data, model and plugin managers to facilitate the development of tests for AI systems. It is used as a base library for all AI Verify official stock-plugins and can be used to develop custom plugins.

Installation

Install aiverify-test-engine via pip. The following table list the available install options and the optional dependencies along with the additional functionality that is supported.

Installation Command Description
pip install aiverify-test-engine Installs only the core functionalites. Supports tabular data formats like CSV, as well as Pandas pickle and Joblib files, and Scikit-learn models.
pip install aiverify-test-engine[dev] Includes additional dependencies for development. Intended for developers who want to contribute to the project.
pip install aiverify-test-engine[tensorflow] Installs optional Tensorflow and Keras dependencies.
pip install aiverify-test-engine[pytorch] Installs optional PyTorch dependencies.
pip install aiverify-test-engine[gbm] Installs XGBoost and LightGBM packages. Supports serializing models in these formats.
pip install aiverify-test-engine[all] Installs the core package along with all additional non development dependencies.

Developer Guide

Local Installation

To contribute changes to the test engine code, clone the repository, navigate to the aiverify-test-engine folder, and install the dev version of the library:

pip install '.[dev]'

Here's an overview of the project folder structure and a brief description of each:

aiverify-test-engine/
├── aiverify_test_engine/   # Core library code   ├── interfaces/         # Core interfaces (algorithm, converter, data, model, pipeline, serializer, plugin)   ├── io/                 # Data and model IO related logic   ├── plugins/            # Manage the loading and execution of algorithm, data, model, pipeline and plugins   ├── utils/              # Utility functions and validators
├── tests/                  # Test cases
├── pyproject.toml          # Project configuration file

Running Tests

python -m pytest tests

If Tensorflow has trouble with GPU, use following environment variable to force Tensorflow to use CPU:

CUDA_VISIBLE_DEVICES="" TF_CPP_MIN_LOG_LEVEL=2 TF_NUM_INTEROP_THREADS=1 TF_NUM_INTRAOP_THREADS=1 XLA_FLAGS="--xla_gpu_unsafe_fallback_to_driver_on_ptxas_not_found" python -m pytest tests

Building the Package

hatch build

License

  • Licensed under Apache Software License 2.0

Developers:

  • AI Verify

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

aiverify_test_engine-2.2.1.tar.gz (84.6 MB view details)

Uploaded Source

Built Distribution

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

aiverify_test_engine-2.2.1-py3-none-any.whl (103.6 kB view details)

Uploaded Python 3

File details

Details for the file aiverify_test_engine-2.2.1.tar.gz.

File metadata

  • Download URL: aiverify_test_engine-2.2.1.tar.gz
  • Upload date:
  • Size: 84.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.11.15 HTTPX/0.28.1

File hashes

Hashes for aiverify_test_engine-2.2.1.tar.gz
Algorithm Hash digest
SHA256 19812a26147aba7631f9a320b2a3828b573b4e63e97b62888010330aa376a231
MD5 5fd013cedc880a0a631f635d21eef440
BLAKE2b-256 31570fc6850a78686b7102ac1265e38b11929c6d76eeb7d3b7b40ab876f70cfc

See more details on using hashes here.

File details

Details for the file aiverify_test_engine-2.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aiverify_test_engine-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d55b45419f7816854ad6ade3b14c80cda9cf530a67a1a0829eda7f31607a94
MD5 34a2561c984bd604729f3eafee7913bb
BLAKE2b-256 cf8580ff4d3d95e258b0e9a9970a9af1258b82448b692a0c78aaaaba637239c2

See more details on using hashes here.

Supported by

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