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

Part of Catalyst Ecosystem. Project manifest.


Installation

Common installation:

pip install -U alchemy-catalyst

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 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",
        }
    )
    
  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-catalyst-20.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

alchemy_catalyst-20.3-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2 Python 3

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

Hashes for alchemy-catalyst-20.3.tar.gz
Algorithm Hash digest
SHA256 34bc8523ae54740a58037fb9995f83d3acbc862be3fb1381ecabca4dff74b849
MD5 330b9090780a10bdd1499f3e4a141be7
BLAKE2b-256 4ca22b84278a3d89bc35f8ce76eb019fc28c49034d56c828df6b70bc0beaf3f9

See more details on using hashes here.

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

Hashes for alchemy_catalyst-20.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bc74a7fe6b95d8266ecffc17cd2829b329e2466682c81548b04884b97060a79d
MD5 478a884e87244992e051dc778722aa9a
BLAKE2b-256 23c38bfb2af4b9e78d52e9feac36e51fd9ad03942b8afeadf1666fc21c48ee87

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