Skip to main content

A lightweight Python package that supplies batteries-included abstractions for PyTorch workflows

Project description

torch-batteries

PyPI version License: MIT Docs

torch-batteries
Image generated by AI

A lightweight Python package that supplies batteries-included abstractions for:

  • Data loading pipelines
  • Model training loops
  • Evaluation workflows
  • Metrics computation
  • Experiment tracking (Weights & Biases)

Designed to reduce boilerplate and standardize experiment code.

Installation

pip install torch-batteries

Optional Dependencies

For experiment tracking with Weights & Biases:

pip install torch-batteries[wandb]

Examples

Explore practical examples demonstrating torch-batteries features:

Example Description Notebook Colab
Function Fitting with MLP Train a neural network to approximate a polynomial function using the event-driven training approach function_fitting.ipynb Open In Colab
Image Classification with CNN Train a Convolutional Neural Network (CNN) for image classification image_classification.ipynb Open In Colab
Learning Rate Sweep with Early Stopping Conduct a learning rate sweep on MNIST classification with aggressive early stopping and log results to Weights & Biases lr_sweep_early_stopping.ipynb Open In Colab

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

torch_batteries-0.6.0.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

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

torch_batteries-0.6.0-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

Details for the file torch_batteries-0.6.0.tar.gz.

File metadata

  • Download URL: torch_batteries-0.6.0.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for torch_batteries-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a77ece37032dae80e34b13fbf52ed0633771108ed1f589f8fbb40eaf3fcec0d3
MD5 14e5daea3b8c034f1459d8f3cf995be2
BLAKE2b-256 71cf06612f6095708d7e2127c65745745f78ac607dd31f39ee1915caaac03e45

See more details on using hashes here.

File details

Details for the file torch_batteries-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for torch_batteries-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4cd6bcc416b9482789c4e50c5bff12f588b2830c64bd875cf0715ca45155703
MD5 81ddb262bd6bdc123b72cf7f2f383bb9
BLAKE2b-256 80a93a2255269036a84a0b44510aa59bcb2a93b61f0c5703bb47de982aea72ef

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