Skip to main content

Christina Washington CV Benchmarking

Reusable Python package for benchmarking image classification models.

Installation

pip install Christina_Washington_CV_Benchmarking

Import

from christina_washington_cv_benchmarking import benchmark_image_classification

Main Function

benchmark_image_classification(dataset, dataset_type, target_labels, color_mode)

Supported Inputs

  • folder
  • csv
  • json
  • array

Color modes: grayscale and rgb.

Preprocessing

  • Images standardized to 64 x 64 pixels
  • Grayscale shape: (N, 64, 64, 1)
  • RGB shape: (N, 64, 64, 3)
  • Pixel values normalized to [0, 1]
  • Aspect ratio preserved with padding when practical

Train-Test Split

  • 80% training / 20% testing
  • Stratified
  • Random seed 42
  • Same split used for all six models

Models

  1. Logistic Regression
  2. Decision Tree
  3. Random Forest
  4. Support Vector Machine
  5. Fully Connected Neural Network
  6. Simple CNN

Evaluation Metrics

  • Accuracy
  • Macro Precision
  • Macro Recall
  • Macro F1
  • Weighted F1
  • Training Time
  • Average Inference Time
  • Confusion Matrix
  • Classification Report

Macro F1 is the primary ranking metric.

Output

Each run generates benchmark_results containing summary CSV, metrics JSON, run configuration, plots, confusion matrices, and classification reports.

Demonstrations

Grayscale demonstration: Fashion-MNIST reproducible subset, 3 classes, 300 images per class, 900 images total.

RGB demonstration: reproducible synthetic RGB dataset with red-dominant, green-dominant, and blue-dominant classes, 300 images per class, 900 images total.

Testing

Run: pytest tests/

The test suite covers data loading, preprocessing, stratification, models, benchmark execution, output generation, and metadata.

Reproducibility

Random seed: 42

No pretrained networks, AutoML, or primary-benchmark augmentation.

License

MIT License

Release files for Christina-Washington-CV-Benchmarking 1.0.0

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

Source distribution (sdist)

Source distribution for Christina-Washington-CV-Benchmarking 1.0.0
File Size Uploaded
christina_washington_cv_benchmarking-1.0.0.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Christina-Washington-CV-Benchmarking 1.0.0
File Interpreter ABI Platform
christina_washington_cv_benchmarking-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / christina_washington_cv_benchmarking-1.0.0.tar.gz

Download URL christina_washington_cv_benchmarking-1.0.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e224d90ce02699450cebd212f4e204ba7ae98cc8f8562ae104b3d5bbffd1dc4f
BLAKE2b-256 checksum
How to use checksums
d4dfacdd476a9d76a9b898584d12e62d2c4b2a9c12d894a349d0e660dc3b08ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / christina_washington_cv_benchmarking-1.0.0-py3-none-any.whl

Download URL christina_washington_cv_benchmarking-1.0.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c810050032ac1341aecc54f3c762d810b3283fd85f6251b1cfc7c737b1d99bac
BLAKE2b-256 checksum
How to use checksums
7c424e50da76170969cbfba5fcbce192a5482d61d9e8051433ebdbd8022dfa31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

1.0.0 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