Skip to main content

Helper modules for AI Engineering Interpretability Bootcamp implementations

Project description

AI Engineering Interpretability Utils

Helper modules for AI Engineering Interpretability Bootcamp implementations.

This package provides reusable utilities for:

  • Loading and preprocessing common datasets (Adult, Diabetes, Bank Marketing, Gas Turbine)
  • Model training and evaluation helpers
  • Visualization utilities for interpretability

Installation

pip install aieng-interp-utils

Usage

from aieng.interp.data import load_adult_dataset, preprocess_adult_data
from aieng.interp.models import train_pytorch_model, get_device
from aieng.interp.visualization import plot_confusion_matrix, plot_roc_curve

# Load and preprocess data
df = load_adult_dataset("path/to/data")
X_train, X_test, y_train, y_test = preprocess_adult_data(df)

# Train model
device = get_device()
model = train_pytorch_model(model, X_train, y_train, device=device)

# Visualize results
plot_roc_curve(y_test, y_pred_proba)
plot_confusion_matrix(y_test, y_pred)

License

MIT

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

aieng_interp_utils-1.0.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

aieng_interp_utils-1.0.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file aieng_interp_utils-1.0.0.tar.gz.

File metadata

  • Download URL: aieng_interp_utils-1.0.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aieng_interp_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f98e5771561eab734bb84325f927c3d83ee1c34f352fcf91af9dba8e8d25e216
MD5 495379f8a16c90c9d7ed06a1dee2a493
BLAKE2b-256 306fe511af4f03f03341e403f200f3fec19fe32d3bdff170fe1709aa16dd0b51

See more details on using hashes here.

File details

Details for the file aieng_interp_utils-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aieng_interp_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf32bcbe4fee911fcf2ac1ed56dc1c0dd14ad29d0d327c1075c83e524ab28284
MD5 c7c6627c0e1b9b2a06938ebf0bce9ab2
BLAKE2b-256 e2d1d26e880fdaba41a2fbe7d54be0ed184fd9d1ddf78266b79ed360a54c3c2a

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