Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Jenga

Overview

Jenga is an open source experimentation library that allows data science practititioners and researchers to study the effect of common data corruptions (e.g., missing values, broken character encodings) on the prediction quality of their ML models.

We design Jenga around three core abstractions:

  • Tasks contain a raw dataset, an ML model and a prediction task
  • Data corruptions take raw input data and randomly apply certain data errors to them (e.g., missing values)
  • Evaluators take a task and data corruptions, and execute the evaluation by repeatedly corrupting the test data of the task, and recording the predictive performance of the model on the corrupted test data.

Jenga's goal is assist data scientists with detecting such errors early, so that they can protected their models against them. We provide a jupyter notebook outlining the most basic usage of Jenga.

Note that you can implement custom tasks and data corruptions by extending the corresponding provided base classes.

We additionally provide three advanced usage examples of Jenga:

Installation

The following options are possible:

pip install jenga             # jenga is ready for the most corruptions (not images)
pip install jenga[all]        # install all dependencies, optimal for development
pip install jenga[image]      # also installs tensorflow ad image corruption/augmentation libraries
pip install jenga[validation] # also install tensorflow and tensorflow-data-validation necessary for SchemaStresstest

Research

Jenga is based on experiences and code from our ongoing research efforts:

Dependency Management & Reproducibility

  1. Always keep your abstract (unpinned) dependencies updated in environment.yaml and eventually in setup.cfg if you want to ship and install your package via pip later on.
  2. Create concrete dependencies as environment.lock.yaml for the exact reproduction of your environment with:
    conda env export -n jenga -f environment.lock.yaml
    
    For multi-OS development, consider using --no-builds during the export.
  3. Update your current environment with respect to a new environment.lock.yaml using:
    conda env update -f environment.lock.yaml --prune
    

Installation for Development

In order to set up the necessary environment:

  1. create an environment jenga with the help of conda,
    conda env create -f environment.yaml
    
  2. activate the new environment with
    conda activate jenga
    
  3. install jenga with:
    python setup.py install # or `develop`
    

Optional and needed only once after git clone:

  1. install several pre-commit git hooks with:
    pre-commit install
    
    and checkout the configuration under .pre-commit-config.yaml. The -n, --no-verify flag of git commit can be used to deactivate pre-commit hooks temporarily.

Then take a look into the notebooks folder.

Note

This project has been set up using PyScaffold 3.2.2 and the dsproject extension 0.4. For details and usage information on PyScaffold see https://pyscaffold.org/.

Metadata

Release files for jenga 0.0.1a1

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

Source distribution (sdist)

Source distribution for jenga 0.0.1a1
File Size Uploaded
jenga-0.0.1a1.tar.gz 10.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for jenga 0.0.1a1
File Interpreter ABI Platform
jenga-0.0.1a1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 10.1 MB

Release files / jenga-0.0.1a1.tar.gz

Download URL jenga-0.0.1a1.tar.gz
Size 10.0 MB
Tags Source
SHA-256 checksum
How to use checksums
a34b83ee053df4c1ffa2555c71086d0d737ecb2e8673eeb90f71bc724c48d37d
BLAKE2b-256 checksum
How to use checksums
07814f89aec19aa4be47f41d7a7d8e20bd174ee6de8b001309349ab635537c93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.10

Release files / jenga-0.0.1a1-py2.py3-none-any.whl

Download URL jenga-0.0.1a1-py2.py3-none-any.whl
Size 33.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0d62c88ca3ca7c87613056211ca56c972eaf6a34be8a3d118e37ff17406fa71e
BLAKE2b-256 checksum
How to use checksums
7e916e8f421c471fb0bc5a1ae04d6d716cd8c469701307dd06b2835550c5520d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.10

Release history Release notifications | RSS feed

This release

0.0.1a1 This release

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