Skip to main content

PyPI version

Trainbench

Trainbench is a tool for quickly setup a (Deep Learning) cross-validation training session with configuration instantiation, learned weights, plots, etc, recording at each training epoch.

Compatible with Keras.

⚠️ This package is currently under active development!

Getting started

Install
pip install trainbench
Create a train session
# train.py

# name
name = 'experiment_01'

# parameters to cross validate against
parameters = {
    'fc_size': [256, 512, 1024]    
    # ...
}

def train(parameters):
    xyz = parameters['xyz']
    # ...
    
    
Running from the command line
trainbench .
Checkout your results
<name>/crosses/
               /001 
                   ├─ meta.yml 
                   ├─ history.pkl 
                   └─ weights/
                          ├─ 001.h5
                          └─ 002.h5
                             ...
In Jupyter Notebooks/Python script
from trainbench import Bench

parameters = {

}

def train_fn(parameters):
    pass
    
bench = Bench()
bench.train('experiment_xyz', train_fn, parameters)

Author notes

I'm wrote this tool for my own usage. Feel free to use it at your own will. If you would like to see any additional features / report existing issues please submit a pull request and/or open an issue.

Metadata

Release files for trainbench 0.0.2

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

Source distribution (sdist)

Source distribution for trainbench 0.0.2
File Size Uploaded Provenance Actions
trainbench-0.0.2.tar.gz 3.1 kB Without provenance Details for trainbench-0.0.2.tar.gz

Release files / trainbench-0.0.2.tar.gz

Download URL trainbench-0.0.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
53869c37a3d2aea6fc89f0539717f5d0a2a7c723f884ea4f2b104b623ce33adf
BLAKE2b-256 checksum
How to use checksums
c6fc7615b28cfaccfd22a9ccd0aca25f49da0b6ed10375f1d44e3cf895cc0fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6

Security for trainbench 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

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