Skip to main content

Alchemy. Experiments logging & visualization.

Project description

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.

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

alchemy-20.5.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

alchemy-20.5-py2.py3-none-any.whl (11.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file alchemy-20.5.tar.gz.

File metadata

  • Download URL: alchemy-20.5.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for alchemy-20.5.tar.gz
Algorithm Hash digest
SHA256 72d7b46613d171106a2666a5c8bb172fdf624efa569bd3c97ab200c449043efc
MD5 46bc511840fff5f5a509fb63798a3c8d
BLAKE2b-256 f1e715a5ebd83aedc0862d28a0c7a23e258c88cfbb56f1b2d1850c7378164f66

See more details on using hashes here.

File details

Details for the file alchemy-20.5-py2.py3-none-any.whl.

File metadata

  • Download URL: alchemy-20.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.2 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/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

File hashes

Hashes for alchemy-20.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dd471beaca1201dbdded7c5b72652deb6e6e1890fe31de8ebd31b9ad1ed1170c
MD5 08c08152a50b3c959c4809df2a7d8ecd
BLAKE2b-256 2b5ccd197afb6b93ea3f67a9796437ec6df1102036b644a6fcbc7d27207103d6

See more details on using hashes here.

Supported by

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