Skip to main content

A tool for MLEs to monitor and control experiments from mobile phones

Project description

Supamodel

Monitor ML Experiments

Monitor ML experiments on your phone

App Store

Website

Supamodel is a dead simple Python package that allows users to monitor their machine learning experiments from their mobile phones. It provides functionalities to log metrics, monitor GPU usage, and manage experiments.

To get started, download the mobile app from App Store, currently only ios is supported.

Login using your preferred login method, and go to settings to copy the api key.

Supamodel

Installation

Install the supamodel python package

pip install supamodel-py

Usage

Now you can start using supamodel in your code, here's a basic example:

import time
import supamodel

supamodel.login("YOUR_API_KEY")

# config can be any dict object containing the hyperparams you want to track

config = {
    "learning_rate": 0.01,
    "optimizer": "Adam",
    "batch_size": 1024
    # ...
}

supamodel.init(experiment_name="Great Big Model", config=config)

for i in range(1, 100):

    # dummy values
    supamodel.log("train_accuracy", i)
    supamodel.log("val_accuracy", 100 - i)


Your experiments now will show up in the app, like this:

Supamodel

You can also set alerts on the metrics to get a notification if it falls below or exceeds a certain amount. Do this by clicking the bell-icon next to the metrics.

Supamodel

API Reference

login

Arguments:

  • api_key (str): Your API key for authentication.

Returns:

  • None

init

Arguments:

  • experiment_name (str): The name of your experiment.
  • config (dict): A dictionary containing the hyperparameters you want to track.
  • main_metric (str, optional): The main metric to monitor. This will be the metric used to generate the preview graph on the experiments page of the app. Defaults to None.
  • log_compute (bool, optional): Whether to log gpu usage. Defaults to True. only works on NVIDIA GPU machines that can run the nvidia-smi command

Returns:

  • None

log

Arguments:

  • metric_name (str): The name of the metric you want to log. e.g. "val_loss"
  • value (float): The value of the metric

Returns:

  • None

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

supamodel_py-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supamodel_py-0.1.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file supamodel_py-0.1.2.tar.gz.

File metadata

  • Download URL: supamodel_py-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for supamodel_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2b9bce58c001e9aea3221abd293f7ebf20386a8485cbdeaf63c6daf0dd3d5a0f
MD5 87958c241700d718a70c71cef0eaaa73
BLAKE2b-256 ba77d6a8955b65195a37b054620e44f605db8147b053de11962fc2d59a2df1f2

See more details on using hashes here.

File details

Details for the file supamodel_py-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: supamodel_py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for supamodel_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e83710365c5b7e7d9773b9fd69607aece0cb439d28e867c28a332668c646975
MD5 73a5734781dac173cc5b2984f1e68d09
BLAKE2b-256 3352ce70ff0b7c4992668a3561a3bde93431c2619425c2773c450c63e86e8191

See more details on using hashes here.

Supported by

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