Alchemy. Experiments logging & visualization.
Project description
Part of Catalyst Ecosystem. Project manifest.
Installation
Common installation:
pip install -U alchemy-catalyst
Getting started
-
Goto Alchemy and get your personal token.
-
Run following example.py:
import random from alchemy import Logger # insert your personal token here token = "..." project = "default" for gid in range(1): group = f"group_{gid}" for eid in range(2): experiment = f"experiment_{eid}" logger = Logger( token=token, experiment=experiment, group=group, project=project, ) for mid in range(4): metric = f"metric_{mid}" # let's sample some random data n = 300 x = random.randint(-10, 10) for i in range(n): logger.log_scalar(metric, x) x += random.randint(-1, 1) logger.close()
-
Now you should see your metrics on Alchemy.
Catalyst.Ecosystem
-
Goto Alchemy and get your personal token.
-
Log your Catalyst experiment with AlchemyRunner:
from catalyst.dl import SupervisedAlchemyRunner runner = SupervisedAlchemyRunner() runner.train( model=model, criterion=criterion, optimizer=optimizer, loaders=loaders, logdir=logdir, num_epochs=num_epochs, verbose=True, monitoring_params={ "token": "...", # insert your personal token here "project": "default", "experiment": "your_experiment_name", "group": "your_experiment_group_name", } )
-
Now you should see your metrics on Alchemy.
Examples
For mode detailed tutorials, please follow Catalyst examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alchemy-catalyst-20.3.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file alchemy-catalyst-20.3.tar.gz
.
File metadata
- Download URL: alchemy-catalyst-20.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34bc8523ae54740a58037fb9995f83d3acbc862be3fb1381ecabca4dff74b849 |
|
MD5 | 330b9090780a10bdd1499f3e4a141be7 |
|
BLAKE2b-256 | 4ca22b84278a3d89bc35f8ce76eb019fc28c49034d56c828df6b70bc0beaf3f9 |
File details
Details for the file alchemy_catalyst-20.3-py2.py3-none-any.whl
.
File metadata
- Download URL: alchemy_catalyst-20.3-py2.py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc74a7fe6b95d8266ecffc17cd2829b329e2466682c81548b04884b97060a79d |
|
MD5 | 478a884e87244992e051dc778722aa9a |
|
BLAKE2b-256 | 23c38bfb2af4b9e78d52e9feac36e51fd9ad03942b8afeadf1666fc21c48ee87 |