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.1.tar.gz (4.3 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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file supamodel-py-0.1.1.tar.gz.

File metadata

  • Download URL: supamodel-py-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 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.1.tar.gz
Algorithm Hash digest
SHA256 4f0a38c8eb6156809079e5d95c25dc7c6e7395f9263c9b90ff2e6b3feb21b9d2
MD5 44b1e95ef86519335bad2ecdc7dcb233
BLAKE2b-256 10ba1350728c119e8c25aa37d8f9dd5561499bfe5f9e408e5db4f94677042eb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: supamodel_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa94a41cf2ff0b2c059b8f333ed01a9518cf838028843f8adb601b44fa9c583e
MD5 8f17edcfc94dfb1c541e6c9cb85cc155
BLAKE2b-256 9fea0f1d4db31b6e4510ce6d6011cbb0894b9ff00dd600c57a21db1fc2d4317f

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