Skip to content

ctrl-q/pass-the-torch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PassTheTorch

Framework for reproducible and trackable Machine-Learning experiments. This project's aim is to allow independent coding of ML models, data loaders, progress tracking and hyperparameter optimization

Setup

git clone https://github.com/ctrl-q/pass-the-torch
cd pass-the-torch
pip install -r requirements.txt

Models

  • The base classes for all models are defined in models/base.py
  • The other files in that folder are provided as examples

Experiments

All possible experiments are stored in the experiments folder.
Some hyperparameters are common to all experiments and some are particular to an experiment

All hyperparameters except for datapath and trials can be specified as:

  1. a value
  2. a tuple of 2 values, which will be interpreted as a range*
  3. a list of multiple values, which will be interpreted as a discrete list of choices*

All hyperparams that are lists or tuples will be tuned via scikit-optimize for trials iterations

* Please quote tuples or lists in the command line. e.g. --lr (0.001, 0.1) -> --lr '(0.001, 0.1)'

Training progress will be available via tensorboardX

Utils

Can be used to store any code for preparing your data for training, e.g. for dataloaders, logging, or anything else you could think of.

Configuration

  • Add your own model to the models folder. The model should subclass PyTorchModel or SKLearnModel

Running

  1. Choose an experiment from the experiments folder
  2. Run "python3 -m experiments.<experiment_name> -h" to get the list of hyperparameters*
  3. Run "python3 -m experiments.<experiment_name>" with hyperparams specified**

The experiments will be saved in the following path: <experiment name>/<hyphen-separated hyperparams in the same order as in the argparse>

* All experiments must be run from this folder, and not from the experiments folder
** The double quotes are needed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages