Skip to main content

No project description provided

Project description

Alchemy CLI

this is the software development kit (SDK) and command line interface (CLI) for alchemy

install

to install this package run

pip install upstride-alchemy

or clone this repository and run

pip install [-e] .

or

python setup.py {install, develop}

SDK

To import the sdk in your project, do a simple

import alchemy

you can now login to alchemy using your credentials and initialize the project :

alchemy.login('your@email', 'yourpassword')
alchemy.init(project_name='project42', 
             run_name='mobilenet on cifar10', 
             dataset='cifar10', 
             model='mobilenet_v3', 
             tags=['pytorch'])

now you can simply call the log function to send results to the platform

alchemy.log(epochs=1, metrics={'accuracy': 0.8, 'loss': 3.1415, 'whatever metric you want': 0.9})

Command line interface

this repository provides a script to update results from a tensorboard checkpoint : alchemy_cli

One parameter is mandatory : log_file, the path of the tensorboard log file to parse.

The other parameter can be passed using the command line or will be asked by the script to the user

These parameters are:

  • --user: email to connect to alchemy
  • --password: password to connect to alchemy
  • --step: step between two points to upload
  • --project: Alchemy project to update
  • --run: Alchemy run to update
  • --tags: tags associated with the run (only if new run)
  • --dataset: dataset used in run (only if new run)
  • --model: Neural Network model used in the run (only if new run)
  • --scalar_plots: scalar graph to upload

Every parameter except log_file can be stored in a yaml file, and provided with the yaml_file. An example yaml file can be:

user: your@email
project: my_project
run: my_run
scalar_plots:
 - my_metric1
 - my_metric2
tags:
 - tag1
 - tag2
dataset: my_dataset
model: my_model

This script can be run with

alchemy_cli <log_fie> <parameters>

Upload_everything

If your experiments are stored in a way that every event files comes with a corresponding yaml, you can use a dedicated script to upload runs based on a wildcard file pattern

bash upload_everything.sh "*my_pattern*" "my_password"

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

upstride-alchemy-1.0.0a2.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file upstride-alchemy-1.0.0a2.tar.gz.

File metadata

  • Download URL: upstride-alchemy-1.0.0a2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for upstride-alchemy-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 155127f75295019da552c281bc6b43d521f4a2d9a0aae19dfc4490b7128a1c51
MD5 dc066486fd6e273ec83731b09df3df94
BLAKE2b-256 f14f3e710aa346272d03193d8ae498421601772004c855c1c2a31f94c91731ed

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