Skip to main content

Mode Rage python client

Project description

Mode Rage client

PyPI version

What is ModeRage

ModeRage is a light-weight tool for storing experimental results and models. Experiments are referenced by their metacategory and id.

Meta Categories

Experiments in ModeRage have a meta-category, which basically defines the type of experiment. Think of meta-categories as an identifier for a project that may contain many experiments or datasets of the same type.

For example, when running many experiments with several sets of hyperparameters, those experiments will be saved into the same meta-category.

Ids

Once an experiment is saved it has an id. This can be used to load the experiment.

Configuration

ModeRage can be started in local or server mode.

Local

In local mode, ModeRage will save files locally to a ~/.moderage folder

Server

The ModeRage Server hosts experiments, data and metadata so it can be access from anywhere.

You can view it here (CURRENTLY UNDER DEVELOPMENT): Server

UI

The ModeRage UI communicates with the ModeRage server and allows browsing of experiments and data

You can view it here (CURRENTLY UNDER DEVELOPMENT): UI

Configuration file

Configuration in ModeRage is defined in a .mrconfig file. If no config file is created, ModeRage will automatically start in local Mode

Saving results

To save any number of files with some meta data you do the following:

1. Define a Meta object

mymeta = {
    'hyperparameter1': 100,
    'hyperparameter2': 200,
    'hyperparameter3': 0.7,
}

2. (Optional) Define any files you want to upload

myfiles = [
    {
        'filename': './path/to/myfile.csv',
        'caption': 'This is my file that contains my results'
    },
    {
        'filename': './path/to/mygraph.png',
        'caption': 'This is my file that contains my graph'
    },
    ...
]

4. (Optional) Reference any other experiments that this experiment is dependent on.

In many situations your experiment may rely on generated datasets or pre-trained models that also have many hyper-parameters. You can reference those parent experiments by adding them to the parent object

myparents = [
    {
        'id': [THE ID OF THE PARENT EXPERIEMENT],
        'metaCategory': 'generated_dataset'
    },
    {
        'id': [THE ID OF THE PARENT EXPERIEMENT],
        'metaCategory': 'pretrained_model'
    }
]

5. Call save

experiment = mr.save('category_name', mymeta, files=myfiles)

Loading results

Loading a saved experiment is simple, you just need to know the meta-category and the id of the experiment.

experiment = mr.load(id, meta_category)

Once the experiment is loaded, the meta information and files from the experiment can be accessed.

For example:

meta = experiment.meta
parents = experiment.parents
files = experiment.files

file = experiment.get_file('mygraph.png')

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

moderage-python-0.1.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distributions

moderage_python-0.1.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

moderage_python-0.1.3-py2-none-any.whl (11.4 kB view details)

Uploaded Python 2

File details

Details for the file moderage-python-0.1.3.tar.gz.

File metadata

  • Download URL: moderage-python-0.1.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for moderage-python-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0ef8160e97552385cae71aaccc0d7135b74328712bc4ac21e79b4d3c0273cf30
MD5 4e3f6a09715095f1522891f927a65ff3
BLAKE2b-256 006ae0240d5de6a618f3e91cfe07f6e2acbaa7bcd7a8efd1d74176f40144467e

See more details on using hashes here.

File details

Details for the file moderage_python-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: moderage_python-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for moderage_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8abc68bc1f86301e7fa7266490060ce515a91a00ccf1c28cf1ab4c7f8f4ab14a
MD5 3bf2b8424fc3e6e3d02d861abbad0e3c
BLAKE2b-256 e56200d84a35110cecb288082e72b5cbab8329dd872f3467cd2a7de9f0751dae

See more details on using hashes here.

File details

Details for the file moderage_python-0.1.3-py2-none-any.whl.

File metadata

  • Download URL: moderage_python-0.1.3-py2-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for moderage_python-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 072d4c3104993e46c1a517e12b3d2863db3841fc11a6770d7da460cfeaff7e91
MD5 ee061c6520cac542e5dcdce14dc17a3a
BLAKE2b-256 093f4fa67922eeb44ffe2dee217ac0f9b8b43f2f450351d957e8abb8fe8d63b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page