Skip to main content

Alchemy logo

Experiments logging & visualization

Build Status CodeFactor Pipi version Docs PyPI Status

Twitter Telegram Slack Github contributors

Project manifest. Part of Catalyst Ecosystem:

  • Alchemy - Experiments logging & visualization
  • Catalyst - Accelerated Deep Learning Research and Development
  • Reaction - Convenient Deep Learning models serving

Installation

Common installation:

pip install -U alchemy

Previous name alchemy-catalyst PyPI Status

Getting started

  1. Goto Alchemy and get your personal token.

  2. 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()
    
  3. Now you should see your metrics on Alchemy.

Catalyst.Ecosystem

  1. Goto Alchemy and get your personal token.

  2. Log your Catalyst experiment with AlchemyLogger:

    from catalyst.dl import SupervisedRunner, AlchemyLogger
    
    runner = SupervisedRunner()
    runner.train(
        model=model,
        criterion=criterion,
        optimizer=optimizer,
        loaders=loaders,
        logdir=logdir,
        num_epochs=num_epochs,
        verbose=True,
        callbacks={
            "logger": AlchemyLogger(
                token="...", # your Alchemy token
                project="your_project_name",
                experiment="your_experiment_name",
                group="your_experiment_group_name",
            )
        }
    )
    
  3. Now you should see your metrics on Alchemy.

Examples

For mode detailed tutorials, please follow Catalyst examples.

Metadata

Release files for alchemy 20.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alchemy 20.5
File Size Uploaded
alchemy-20.5.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alchemy 20.5
File Interpreter ABI Platform
alchemy-20.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 18.1 kB

Release files / alchemy-20.5.tar.gz

Download URL alchemy-20.5.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
72d7b46613d171106a2666a5c8bb172fdf624efa569bd3c97ab200c449043efc
BLAKE2b-256 checksum
How to use checksums
f1e715a5ebd83aedc0862d28a0c7a23e258c88cfbb56f1b2d1850c7378164f66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

Release files / alchemy-20.5-py2.py3-none-any.whl

Download URL alchemy-20.5-py2.py3-none-any.whl
Size 11.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dd471beaca1201dbdded7c5b72652deb6e6e1890fe31de8ebd31b9ad1ed1170c
BLAKE2b-256 checksum
How to use checksums
2b5ccd197afb6b93ea3f67a9796437ec6df1102036b644a6fcbc7d27207103d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

Release history Release notifications | RSS feed

This release

20.5 This release

2 release files

20.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page