Skip to main content

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.

Metadata

Release files for alchemy-catalyst 20.3

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-catalyst 20.3
File Size Uploaded Provenance Actions
alchemy-catalyst-20.3.tar.gz 5.4 kB Without provenance Details for alchemy-catalyst-20.3.tar.gz

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / alchemy-catalyst-20.3.tar.gz

Download URL alchemy-catalyst-20.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
34bc8523ae54740a58037fb9995f83d3acbc862be3fb1381ecabca4dff74b849
BLAKE2b-256 checksum
How to use checksums
4ca22b84278a3d89bc35f8ce76eb019fc28c49034d56c828df6b70bc0beaf3f9
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/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release files / alchemy_catalyst-20.3-py2.py3-none-any.whl

Download URL alchemy_catalyst-20.3-py2.py3-none-any.whl
Size 8.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bc74a7fe6b95d8266ecffc17cd2829b329e2466682c81548b04884b97060a79d
BLAKE2b-256 checksum
How to use checksums
23c38bfb2af4b9e78d52e9feac36e51fd9ad03942b8afeadf1666fc21c48ee87
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/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Security for alchemy-catalyst 20.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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