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 can 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.2.6.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

moderage_python-0.2.6-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moderage-python-0.2.6.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for moderage-python-0.2.6.tar.gz
Algorithm Hash digest
SHA256 57db7915b637d0311979dbc7e7920984aea43702f0bad17f70781f908c70d75f
MD5 bb2c2efc83c1626686fcf1d93648c171
BLAKE2b-256 2b39039e9ee2a4f1527b5c89a3bbac5dccaa9b1ffedb385c45b7fe84f718c4fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moderage_python-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for moderage_python-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d6496c3c094ec4a2c94412613a0f4b8f27320783f95e5bf8ac587d29d666ee4b
MD5 a9ded286fec2663ce1a12c35bc4ff29b
BLAKE2b-256 2d25ff4924d9cf5b42c8473e7b1e5f828f7caf680039033c94cc7dc2e0dd4bb9

See more details on using hashes here.

Supported by

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