Skip to main content

Agoge

An opinionated ML development environment

Train pytorch models, hyperparameter tune them with single loc change.

Libraries

Pytorch

Pytorch is a Python first machine learning library

Ray

Ray Provides easy experiment scaling + hyper parameter optimisation

MLFlow

Provides tracking of model metrics and hyperparameters. Also allows for intelligent storing of training artifacts

Static Components

These components should not need to be customised for model specific use cases

Train Worker

Setups all the required components to train a model

Inference Worker

Setups all the required components for inference. Also attempts to download model weights if they are not found locally.

Tracker

Slim interface into MLFlow, to set the MLFlow server address set the MLFLOW_TRACKING_URI environment variable either from the CLI or before importing agoge.

Examples

CLI

MLFLOW_TRACKING_URI="http://localhost:5001"

Python

from os import environ
environ['MLFLOW_TRACKING_URI'] = 'http://localhost:5001'
import agoge

Data Handler

Loads the dataset and handles the dataset split

User Provided Components

These components need to be inherited by project specific classes

Model

Provides some convenience functions around loading models. This class will hold all model specific code and is used by the train worker and inference workers

Solver

Override the solve method with the code required to train your model

Dataset

Any dataset that is compatiable with the Pytorch map style dataset model

Disclaimer

This code is subject to change. I will try not to break anything but can't promise. File an issue if an update breaks your code

Metadata

Release files for agoge 0.0.3

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

Source distribution (sdist)

Source distribution for agoge 0.0.3
File Size Uploaded
agoge-0.0.3.tar.gz 6.9 kB Details

Release files / agoge-0.0.3.tar.gz

Download URL agoge-0.0.3.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f88245d72b54d2d1a71829bb7211412aed6083b4d6e5f6106babe3bd2f5faafe
BLAKE2b-256 checksum
How to use checksums
3c50185ab5fa8d5d53bfaeb0675d9ab46453834064143617ffe78a1be4ab4e19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0.post20200511 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

Release history Release notifications | RSS feed

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

This release

0.0.3 This release

1 release file

0.0.2

1 release file

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